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
RSV1 must be clear
Seems like this happens after using newer node version than 16. On v20.11.0, this happens when the "Detect broken connections" is enabled.
See:
RangeError: Invalid WebSocket frame: RSV1 must be clear
Reason for that is how the websocket upgraded is handled. Instead of listen for the upgrade event, the upgrade is done in the request event.
upgrade
request
After handling the upgrade event, it seems the problem is solved. Test and add the following code to the http servers:
server.on("upgrade", (req, socket, head) => { let res = new http.ServerResponse(req); res.assignSocket(socket) res.on("finish", () => { res.socket.destroy(); }); app(req, res); });
The text was updated successfully, but these errors were encountered:
c085e5d
No branches or pull requests
Seems like this happens after using newer node version than 16.
On v20.11.0, this happens when the "Detect broken connections" is enabled.
See:
RangeError: Invalid WebSocket frame: RSV1 must be clear
connector#38RSV1 must be clear
on node v20.11.0 websockets/ws#2193Reason for that is how the websocket upgraded is handled.
Instead of listen for the
upgrade
event, the upgrade is done in therequest
event.After handling the upgrade event, it seems the problem is solved.
Test and add the following code to the http servers:
The text was updated successfully, but these errors were encountered: