#Odd websocket connection issue with subprotocol

1 messages · Page 1 of 1 (latest)

tawdry rampart
#

Hey I am encountering an odd issue using bun sockets with ElysiaJS framework.

When I set a protocol on the standard websocket client, which sets the Sec-WebSocket-Protocol header on the request, the socket seems to get disconnected immediately after connecting.

Is anyone aware of why this may be, or how I might isolate this to bun or elysia?

silver raven
#

client or server?

#

oh you said client

#

hm

#

we do pass through the protocol

tawdry rampart
#

Yeah I looked at the source and it just seemed like it was forwarded as a response header so I am kinda stumped...

silver raven
#

have you checked in the elysia discord?

tawdry rampart
#

yeah I have created an issue there

It seems like the js websocket client may be closing the connection because it did not get the protocol header