extra.socket.protocol
set to ''
(empty string) in onClose
event listener, for closure that do not connect due to deprecated sub-protocol
#562
Unanswered
loucadufault
asked this question in
Q&A
Replies: 1 comment
-
Hey hey, this is unrelated to graphql-ws itself. The Briefly going through their code, the socket.protocol is set here, could be that the connection fails earlier? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have noticed for Server, with clients that attempt to connect with
Sec-WebSocket-Protocol
header set to the oldgraphql-ws
, when logging theextra.socket.protocol
received by theonClose
listener, it is an empty string. However, logging thereq.headers['sec-websocket-protocol']
shows the populated value.Is this something that is expected? I would prefer to not have to cover both cases in the handling logic.
Beta Was this translation helpful? Give feedback.
All reactions