private function setupApp()
    {
        if ($this->session instanceof \SessionHandlerInterface)
        {
            $serverStack = new SessionProvider(
                new WampServer(
                    $this->getContainer()->get("jdare_clank.clank_app")
                ),
                $this->session
            );

        }else{
            $serverStack = new WampServer(
                $this->getContainer()->get("jdare_clank.clank_app")
            );
        }


        $this->app = new WsServer(
            $serverStack
        );
    }
private function setupApp()
    {
        if ($this->session instanceof \SessionHandlerInterface)
        {
            $serverStack = new SessionProvider(
                new WampServer(
                    $this->getContainer()->get("jdare_clank.clank_app")
                ),
                $this->session
            );

        }else{
            $serverStack = new WampServer(
                $this->getContainer()->get("jdare_clank.clank_app")
            );
        }


        $this->app = new WsServer(
            $serverStack
        );
    }
private function setupApp ( ) { if ( $ this -> session instanceof \ SessionHandlerInterface ) { $ serverStack = new SessionProvider ( new WampServer ( $ this -> getContainer ( ) -> get ( "jdare_clank.clank_app" ) ) , $ this -> session ) ; } else { $ serverStack = new WampServer ( $ this -> getContainer ( ) -> get ( "jdare_clank.clank_app" ) ) ; } $ this -> app = new WsServer ( $ serverStack ) ; }
Sets up clank app to bootstrap Ratchet and handle socket requests
Sets up clank app to bootstrap Ratchet and handle socket requests