public function findWebSocketRoute()
    {
        $pathinfo = !empty($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] != '/' ? $_SERVER['PATH_INFO'] : '/index';

        foreach ($this->routes as $value) {
            if ($value['method'] == 'WEBSOCKET') {
                $route_uri = '/' . implode('/', $value['params']);

                if ($pathinfo === $route_uri) {
                    return $value['controller'];
                }
            }
        }

        return '';
    }
public function findWebSocketRoute()
    {
        $pathinfo = !empty($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] != '/' ? $_SERVER['PATH_INFO'] : '/index';

        foreach ($this->routes as $value) {
            if ($value['method'] == 'WEBSOCKET') {
                $route_uri = '/' . implode('/', $value['params']);

                if ($pathinfo === $route_uri) {
                    return $value['controller'];
                }
            }
        }

        return '';
    }
public function findWebSocketRoute ( ) { $ pathinfo = ! empty ( $ _SERVER [ 'PATH_INFO' ] ) && $ _SERVER [ 'PATH_INFO' ] != '/' ? $ _SERVER [ 'PATH_INFO' ] : '/index' ; foreach ( $ this -> routes as $ value ) { if ( $ value [ 'method' ] == 'WEBSOCKET' ) { $ route_uri = '/' . implode ( '/' , $ value [ 'params' ] ) ; if ( $ pathinfo === $ route_uri ) { return $ value [ 'controller' ] ; } } } return '' ; }
Find One websocket by controller handler name

@return string $controller_class
Find One websocket by controller handler name