Error: Error during WebSocket handshake: Response must not include 'Sec-WebSocket-Protocol' header if not present in request: binary.
This is because (*websocket.Config).Protocol is set to binary, even when the request doesn't request a specific protocol. Other browsers (like Firefox) happen to request a protocol, so it works fine.
Error:
Error during WebSocket handshake: Response must not include 'Sec-WebSocket-Protocol' header if not present in request: binary
.This is because
(*websocket.Config).Protocol
is set tobinary
, even when the request doesn't request a specific protocol. Other browsers (like Firefox) happen to request a protocol, so it works fine.