Beispiel #1
0
 /**
  * @param IoServerComponentInterface $component
  * @param SocketListenerInterface $socket
  */
 public function __construct(IoServerComponentInterface $component, SocketListenerInterface $socket)
 {
     $this->component = $component;
     $this->socket = $socket;
     $socket->on('connect', [$this, 'handleConnect']);
 }
Beispiel #2
0
 /**
  * @override
  * @inheritDoc
  */
 public function resume()
 {
     return $this->listener->resume();
 }