-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
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
RSV1 set to one but must be zero #23
Comments
Can you force disable |
The Node.js ws client documentation says that the extension is only enabled if the server supports it and it is enabled, which means that the extension must be negotiated before it is used (which is done by sending a HTTP header in the response to the initial HTTP request). Which suggests to me, even though the server does not support it, it sends a RSV1 even though it's not enabled and negotiated. Looking at the code, the protocol implementation seems flawed to me. I'll report back after more investigation and testing. |
On your server listing I don't see any |
I'm currently in the works of making this library work with MKR1000 and WiFi101 and I'm testing this with a Node.js websocket client. However whenever I try to send a message from Node.js, the connection will fail with
Invalid WebSocket frame: RSV1 must be clear
, which indicates this library setsRSV1
to one, even though no extension was actually negated (websockets/ws#1140 (comment), https://tools.ietf.org/html/rfc6455#section-5.2).In my config.h I've uncommented the "debug macros"
And on the serial I can see the following getting printed (and that's all of it):
Node.js output:
Node.js client code:
I'm using a little more code for all my setup and peripheries, but this is a simplified version:
The text was updated successfully, but these errors were encountered: