Skip to content

No response from subscription in React code. #105

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

You must be logged in to vote

@hansehe @AlexanderMoroz, inspecting the messages received over SSE in your screenshots - I noticed that they're malformed coming from the server - they dont have an "event" type specified. There is nothing graphql-sse can do here.

The SSE messages for subscription events must specify event: next to be registered by graphql-sse as per the GraphQL over SSE protocol.

I reckon graphiql works because it's not using graphql-sse - but is using the plain ol' EventSource and just the on-message handler.

You guys should open an issue on the server's repo.

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@enisdenjo
Comment options

@hansehe
Comment options

@hansehe
Comment options

@enisdenjo
Comment options

@enisdenjo
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@AlexanderMoroz
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
3 participants
Converted from issue

This discussion was converted from issue #104 on August 12, 2024 16:39.