statianzo / Fleck

C# Websocket Implementation
MIT License
2.31k stars 585 forks source link

Handshake SupportedSubProtocols does not work. #319

Closed ilsnk closed 3 years ago

ilsnk commented 3 years ago

image SupportedSubProtocols from client always null: ws://127.0.0.1:5000/chat/

ilsnk commented 3 years ago

there is nothing here (null), no matter how I send this SubProtocol

image

ilsnk commented 3 years ago

What I was looking for was "path", most likely the sub-protocol needs to be sent in a different form. This site helped me figure it out.

https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers

statianzo commented 3 years ago

Subprotocols are added in JavaScript by the second argument of the WebSocket constructor. Glad to hear that path will work for you though.