blocked websocket / delayed messages? #309
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
it's worth adding: an even weirder thing is that the mutation to send the message uses a separate client to the subscription client, so it's baffling that the subscription client only receives its next message when these mutations happen |
Beta Was this translation helpful? Give feedback.
-
I doubt I'll start by asking: have you checked the messages themselves? Are there messages sent to/by On the server, please consult the "server usage with console logging" recipe. For the client, you can listen on message events and log the results to confirm. import { createClient } from 'graphql-ws';
const client = createClient({
...
on: {
message: (msg) => {
console.log(msg);
},
},
}); |
Beta Was this translation helpful? Give feedback.
I doubt
graphql-ws
is causing this, so I converted the issue to a discussion. Still, it's interesting, so let's investigate further.I'll start by asking: have you checked the messages themselves? Are there messages sent to/by
graphql-ws
?On the server, please consult the "server usage with console logging" recipe.
For the client, you can listen on message events and log the results to confirm.