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;
}