Closed ilsnk closed 3 years ago
there is nothing here (null), no matter how I send this SubProtocol
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
Subprotocols are added in JavaScript by the second argument of the WebSocket constructor. Glad to hear that path will work for you though.
SupportedSubProtocols from client always null: ws://127.0.0.1:5000/chat/