Example #1
0
 /**
  * Connection callback
  * 
  * @param ConnectionInterface $connection
  */
 public function connectionCallback(ConnectionInterface $connection)
 {
     if ($this->logger) {
         $this->logger->info("Connecting to " . (string) $connection . " and saying hello");
     }
     $connection->write($this->writer->magic());
 }