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
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
I found the websocket server can't accept the connection with the subprotocol.
For example: new wsImpl('ws','subprotocol')
So i modify some places in CompleteHandshake in WebSocketsProcessor_RFC6455_13. Basically I have to append Sec-WebSocket-Protocol before complete the handshake.
My question is how can I override this method in my project instead of modifying the source code?
[2018/7/20 updates] My current solution is to modify the CompleteHandshake in WebSocketsProcessor_RFC6455_13.cs
What I've done is to make sure the subprotocol in headers["sec-websocket-protocol"] is valid, if so, append the acceptable subprotocol in the string frame.
Any suggestions?
Thank you.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I found the websocket server can't accept the connection with the subprotocol.
For example:
new wsImpl('ws','subprotocol')
So i modify some places in CompleteHandshake in WebSocketsProcessor_RFC6455_13. Basically I have to append Sec-WebSocket-Protocol before complete the handshake.
My question is how can I override this method in my project instead of modifying the source code?
[2018/7/20 updates] My current solution is to modify the CompleteHandshake in WebSocketsProcessor_RFC6455_13.cs
What I've done is to make sure the subprotocol in headers["sec-websocket-protocol"] is valid, if so, append the acceptable subprotocol in the string frame.
Any suggestions?
Thank you.
The text was updated successfully, but these errors were encountered: