Skip to content

Question about socket.io #378

Answered by enisdenjo
paul-bell asked this question in Q&A
Discussion options

You must be logged in to vote

graphql-ws and it's accompanying GraphQL over WebSocket Protocol is purely for WebSockets. Since Socket.io leverages more than just WebSockets (HTTP long-polling), graphql-ws will not be supporting it.

Still, you should be able to implement the server on top of Socket.io using makeServer (see "Server usage with ws" recipe for a quick start). However, you'll have to implement the client from scratch completely on your own.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by enisdenjo
Comment options

You must be logged in to vote
0 replies
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 #377 on July 07, 2022 07:40.