PHPDaemon\SockJS\Application::getRouteOptions PHP Method

getRouteOptions() public method

getRouteOptions
public getRouteOptions ( string $path ) : array
$path string [@todo description]
return array
    public function getRouteOptions($path)
    {
        $opts = ['websocket' => true, 'origins' => ['*:*'], 'cookie_needed' => false];
        foreach ($this->wss as $wss) {
            if ($wss->routeExists($path)) {
                foreach ($wss->getRouteOptions($path) as $k => $v) {
                    $opts[$k] = $v;
                }
                break;
            }
        }
        return $opts;
    }