menu
Channels
Team
Posts
Members
Info

Trying to get subscriptions to work

Using apollo-server and the split method for apollo-client (from here). I'm able to query subscriptions (to see live updates) when using the Playground, but on the client I keep getting an error (WebSocket connection to 'ws://0.0.0.0:4000/' failed: Error during WebSocket…

thumbsup
0
message-simple
1

Multiple instances of WebSocketLink/SubscriptionClient

By analogy to how HttpLink gets multiplexed with WebSocketLink (via split() from apollo-link), would it be possible to create 2 instances of WebSocketLink so each would be responsible for a separate WS connection to the same subscription server? I need 2 connections to separate…

thumbsup
0
message-simple
2

Adding GraphQL subscriptions to the existing express app using single server

I have an existing code based on express. I've integrated Apollo v2 this way: and then i start my existing app on port 3000 and can access the GraphQL playground on http://localhost:3000/graphql. All queries and mutation work as expected Now I want to add subscriptions. Turns…

thumbsup
0
message-simple
0

Subscriptions performance: withFilter vs dynamically created triggers

Let's say I'm using an external pubsub implementation like Redis. I assume it eases the load on the GraphQL server to dynamically create triggers (e.g., NEW_COMMENT:POST-${postId} and have users subscribe to these triggers depending on which post they're viewing — rather than a…

thumbsup
0
message-simple
0

How to setup apollo-server-fastify to have subscriptions working ?

It seems that subscriptions support has been added in express and Hapi. But none for subscription. Can someone can help me to have subscription setup in my fastify server please ?

thumbsup
0
message-simple
1

graphql-redis-subscriptions on Heroku not working consistently

We are using subscriptions on a node graphql server. Recently I added the cluster ability and used Redis for pubsub. On my local environment all works great. When I upload to heroku and use their Redis addon the first time I fire a mutation I see it show but the next time it…

thumbsup
0
message-simple
1

Can you have subscription on Azure Functions?

I have my graphQL running on Azure Function, but the function is set to always be on. So is it possible to add subscription to my server?

thumbsup
0
message-simple
0

Subscriptions deduplication

Is there such a thing? I'm using same query on multiple components and those are deduplicated nicely, however if I use same subscription on multiple components, each instance will initialize new subscription over websocket. This means that on some server event, client will…

thumbsup
0
message-simple
5

Subscriptions: Race condition? Query data updating before subscribeToMore()

Hi all – I've been encountering a strange issue with a <Query> and its child subscriptions, whereby on reception of a subscription payload, the <Query> data is updating before the subscribeToMore() function is called. A rough schematic: …

thumbsup
3
message-simple
20

Subscription works locally but not on firebase

Greetings! Locally everything works like a charm,but after deploying to firebase subscription throws : Could not connect to websocket endpoint wss://project.cloudfunctions.net/. Please check if the endpoint url is correct. …

thumbsup
0
message-simple
1