XSockets / XSockets.Clients

Realtime clients for XSockets.NET 4.*
MIT License
11 stars 9 forks source link

Error during WebSocket handshake #18

Closed SilvijaBart closed 4 years ago

SilvijaBart commented 5 years ago

Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol' header but no response was received. It only happens on Chrome.

uffebjorklund commented 5 years ago

@SilvijaBart

If possible provide some sample code

From your description it sounds like you are using a WebSocket-Server that is not XSockets? The XSockets client will send a websocket sub-protocol XSockets.NET. If the server does not respond with the same sub-protocol in the Sec-WebSocket-Protocol chrome will deny the connection.