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