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
An uncaught exception will occur if WebSocketSend is called after the ws property on the instance has already been deleted here: https://github.com/jirihybek/unity-websocket-webgl/blob/master/Plugins/WebSocket.jslib#L205
WebSocketSend
ws
Uncaught TypeError: Cannot read property 'readyState' of undefined
This is because the WebSocketSend method only checks for null, but in this case the value would be undefined here: https://github.com/jirihybek/unity-websocket-webgl/blob/master/Plugins/WebSocket.jslib#L258
null
undefined
I will have a PR with the fix momentarily.
The text was updated successfully, but these errors were encountered:
Fixes jirihybek#3 - Uncaught exception when WebSocketSend called afte…
518e93b
…r WS closed.
This PR fixed my problem. Thank you very much.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
An uncaught exception will occur if
WebSocketSend
is called after thews
property on the instance has already been deleted here: https://github.com/jirihybek/unity-websocket-webgl/blob/master/Plugins/WebSocket.jslib#L205This is because the
WebSocketSend
method only checks fornull
, but in this case the value would beundefined
here: https://github.com/jirihybek/unity-websocket-webgl/blob/master/Plugins/WebSocket.jslib#L258I will have a PR with the fix momentarily.
The text was updated successfully, but these errors were encountered: