You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
I have multiple schemas in my application for a multitenant app.
I have code that is something like
SubscriptionServer.create({
execute,
subscribe,schema: schema1,},{path: `/graphql/test1`,
server
});SubscriptionServer.create({
execute,
subscribe,schema: schema2},{path: `/graphql/test2`,
server
});
However once I add in another endpoint the client will fail to connect. I will get the error WebSocket connection to 'ws://localhost:4000/graphql/test1' failed: Invalid frame header.
Is there any sort of work around for this?
The text was updated successfully, but these errors were encountered:
Thanks @mistic it works except for the fact emit of connection should provide request as well,
also, wsServer is private so need to access it using
so wsServerX['wsServer'].emit('connection', ws, req)
Hi,
I have multiple schemas in my application for a multitenant app.
I have code that is something like
However once I add in another endpoint the client will fail to connect. I will get the error
WebSocket connection to 'ws://localhost:4000/graphql/test1' failed: Invalid frame header
.Is there any sort of work around for this?
The text was updated successfully, but these errors were encountered: