Anybody get graphql subscriptions working? #636
Unanswered
tettoffensive
asked this question in
General
Replies: 1 comment
-
Found a workaround to use subscriptions on both client as well as server-side, you refer it here. But this solution has its own issues
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Next.js with my
/pages/api/graphql
runningapollo-server-micro
. On the client, I've been usingswr
. I'm just needing to get notified when a new comment is added by another user. So I thought I'd add a graphql subscription. The problem is, I'm not sure how to get the ApolloServer to handle these requests. I've seen numerous documentation that the client side should be doing something like this:But I haven't been able to make a connection to the server because I guess I need to setup a websocket somehow or maybe there's an alternative?
Beta Was this translation helpful? Give feedback.
All reactions