You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to check Authorization header in onWebsocketConnect event and if it's not valid, send json data with error message and close connection...
so basically I would like to edit this Websocket.php code:
if (!empty($connection->context->tmpWebsocketData)) {
$connection->send($connection->context->tmpWebsocketData, true);
$connection->context->tmpWebsocketData = '';
if ($connection->closeAfterDataSent)
$connection->close();
}
}
or is there any other way?
Thank you.
The text was updated successfully, but these errors were encountered:
if you mean call " $connection->close();" it doesnt work because nginx (serving as reverse proxy) throw 502 upstream prematurely closed connection while reading response header from upstream
Hi,
I would like to check Authorization header in onWebsocketConnect event and if it's not valid, send json data with error message and close connection...
so basically I would like to edit this Websocket.php code:
or is there any other way?
Thank you.
The text was updated successfully, but these errors were encountered: