hey everyone -- im trying to set up a subscription...
# prisma-whats-new
c
hey everyone -- im trying to set up a subscription in node.js via websockets. the subscription query is correct and works in the graph cool console. I'm able to successfully create a connection and send my subscription getting back the "subscription_success" type, however i'm not receiving data. any ideas?
d
If you do not use the apollo client directly I would recommended you to look at the subscription protocol specification (which Graphcool follows), if you didn’t already. https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md
c
cool, ill check that out. right now, ive just followed the docs for a websocket connection here: https://docs-next.graph.cool/reference/api/subscriptions-aip7oojeiv
also, im trying to make the subscription from node -- so no apollo.