Sec-WebSocket-Protocol terminates connection

Hello,

I want to pass a token using the Sec-Protocol-Websocket header and it keeps causing my connection to be terminated. The handshake is successful (returns 101) and channel subscription is also successful but then the connection is terminated with this error:

pushpin-1 | [DEBUG] 2025-05-08 19:04:29.680 [connmgr] [pushpin::connmgr::connection] server-conn 1-0-0: process error: Io(Kind(UnexpectedEof))

Anyone know how to get it to work?

Hi, the client might be expecting the server to include a Sec-WebSocket-Protocol header in the response.