private function bootWebSocketServer($withZmq = false)
    {
        if ($withZmq || $this->option('zmq')) {
            $this->bootZmqConnection();
        }

        $this->wsServerInstance = new WsServer($this->serverInstance);

        $this->serverInstance = new HttpServer(
            $this->wsServerInstance
        );

        if($this->keepAlive > 0){
            $this->wsServerInstance->enableKeepAlive($this->getEventLoop(), $this->keepAlive);
        }

        return $this->bootIoServer();
    }
private function bootWebSocketServer($withZmq = false)
    {
        if ($withZmq || $this->option('zmq')) {
            $this->bootZmqConnection();
        }

        $this->wsServerInstance = new WsServer($this->serverInstance);

        $this->serverInstance = new HttpServer(
            $this->wsServerInstance
        );

        if($this->keepAlive > 0){
            $this->wsServerInstance->enableKeepAlive($this->getEventLoop(), $this->keepAlive);
        }

        return $this->bootIoServer();
    }
private function bootWebSocketServer ( $ withZmq = false ) { if ( $ withZmq || $ this -> option ( 'zmq' ) ) { $ this -> bootZmqConnection ( ) ; } $ this -> wsServerInstance = new WsServer ( $ this -> serverInstance ) ; $ this -> serverInstance = new HttpServer ( $ this -> wsServerInstance ) ; if ( $ this -> keepAlive > 0 ) { $ this -> wsServerInstance -> enableKeepAlive ( $ this -> getEventLoop ( ) , $ this -> keepAlive ) ; } return $ this -> bootIoServer ( ) ; }
Decorate the server instance with a WebSocket server.

@param bool $withZmq
@return IoServer
Decorate the server instance with a WebSocket server .