private function initWebsocketServer()
    {
        $websocketBind = $this->sandstoneApplication['sandstone.websocket.server']['bind'];
        $websocketPort = $this->sandstoneApplication['sandstone.websocket.server']['port'];

        $socket = new ReactSocketServer("$websocketBind:$websocketPort", $this->loop);

        new IoServer(
            new HttpServer(
                new WsServer(
                    new ServerProtocol(
                        new WebsocketApplication(
                            $this->sandstoneApplication
                        )
                    )
                )
            ),
            $socket
        );
    }
private function initWebsocketServer()
    {
        $websocketBind = $this->sandstoneApplication['sandstone.websocket.server']['bind'];
        $websocketPort = $this->sandstoneApplication['sandstone.websocket.server']['port'];

        $socket = new ReactSocketServer("$websocketBind:$websocketPort", $this->loop);

        new IoServer(
            new HttpServer(
                new WsServer(
                    new ServerProtocol(
                        new WebsocketApplication(
                            $this->sandstoneApplication
                        )
                    )
                )
            ),
            $socket
        );
    }
private function initWebsocketServer ( ) { $ websocketBind = $ this -> sandstoneApplication [ 'sandstone.websocket.server' ] [ 'bind' ] ; $ websocketPort = $ this -> sandstoneApplication [ 'sandstone.websocket.server' ] [ 'port' ] ; $ socket = new ReactSocketServer ( "$websocketBind:$websocketPort" , $ this -> loop ) ; new IoServer ( new HttpServer ( new WsServer ( new ServerProtocol ( new WebsocketApplication ( $ this -> sandstoneApplication ) ) ) ) , $ socket ) ; }
Init websocket server and push server if enabled.
Init websocket server and push server if enabled .