Skip to content

blocked websocket / delayed messages? #309

Answered by enisdenjo
louisholley asked this question in Q&A
Discussion options

You must be logged in to vote

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.

import { createClient } from 'graphql-ws';

const client = createClient({
  ...
  on: {
    message: (msg) => {
      console.log(msg);
    },
  },
});

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@louisholley
Comment options

Answer selected by enisdenjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #308 on February 18, 2022 14:23.