PHPDaemon\Servers\WebSocket\Pool::getRouteOptions PHP Method

getRouteOptions() public method

Return options by route
public getRouteOptions ( string $path ) : array
$path string Route name
return array Options
    public function getRouteOptions($path)
    {
        $routeName = ltrim($path, '/');
        if (!isset($this->routeOptions[$routeName])) {
            return [];
        }
        return $this->routeOptions[$routeName];
    }