The guard in here
prevents the server from closing the WebSocket inside the opened function (e.g. here
) as the peer is only added to the clients set upon returning from opened.
The result is that no init response is sent and the WebSocket stays open.
The guard in here
graphql-ws/src/use/crossws.ts
Line 73 in fc03004
graphql-ws/src/server.ts
Line 590 in fc03004
The result is that no init response is sent and the WebSocket stays open.