We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you close the connection from the ServerHandler you get an error
public function onMessage(ConnectionContract $conn, $msg){ $socket_id = $conn->getUniqueSocketId(); $json = json_decode($msg, true); if(empty($json['sid'])){ $conn->close(); } }
error
fwrite(): supplied resource is not a valid stream resource /var/www/.../php/class/third-party/php-wss/Components/Connection.php(41) #0 [internal function]: {closure}(2, 'fwrite(): suppl...', '/var/www/...', 41, Array) #1 /var/www/.../php/class/third-party/php-wss/Components/Connection.php(41): fwrite(Resource id #31, '\x81={"sid":"k0krg...') #2 /var/www/.../php/class/Websocket.php(82): WSSC\Components\Connection->send('{"sid":"k0krggq...') #3 /var/www/.../php/class/third-party/php-wss/WebSocketServer.php(215): ServerHandler->onMessage(Object(WSSC\Components\Connection), '{"sid":"k0krggq...')
The text was updated successfully, but these errors were encountered:
#20. Fix non-resource closing connection on stream_select
80c8376
https://github.com/arthurkushman/php-wss/releases/tag/1.3.11
Sorry, something went wrong.
No branches or pull requests
If you close the connection from the ServerHandler you get an error
error
fwrite(): supplied resource is not a valid stream resource /var/www/.../php/class/third-party/php-wss/Components/Connection.php(41)
#0 [internal function]: {closure}(2, 'fwrite(): suppl...', '/var/www/...', 41, Array)
#1 /var/www/.../php/class/third-party/php-wss/Components/Connection.php(41): fwrite(Resource id #31, '\x81={"sid":"k0krg...')
#2 /var/www/.../php/class/Websocket.php(82): WSSC\Components\Connection->send('{"sid":"k0krggq...')
#3 /var/www/.../php/class/third-party/php-wss/WebSocketServer.php(215): ServerHandler->onMessage(Object(WSSC\Components\Connection), '{"sid":"k0krggq...')
The text was updated successfully, but these errors were encountered: