menu
Apollo

# Subscriptions

Apollo subscription support.

Posts
Members
Search

Do subscription responses auto-update the client cache?

I have a few subscriptions set up that are meant to send updated versions of objects as they're altered outside of the context of the client (on the server, or on other clients). So far, I haven't been able to get the response of any of these subscriptions to update the client…

thumbsup
0
message-simple
9

A subscription per user

I am trying to figure out if it is possible/best practice to have a subscription per user. The use case for us is a pod cast app that allows users to create their own account and we track data per user (favorite episodes, marked as listen, current player position). This is…

thumbsup
0
message-simple
0

Subscriptions Bi directional Exchange

From what I understand, a subscription uses a websocket connection. Once it is connected the client listens for the server to send events. My question is around the bi directional nature of the persistent connection that is made with the websocket. Can the server receive queries…

thumbsup
0
message-simple
2

cleaning up in graphql subscription

Hello all I have been stuck for a lil bit figuring out how to close a node stream I open in a graphql subscription. Please take a look at the below Schema Resolver …

thumbsup
0
message-simple
2

Updating Data on WebSocket Reconnect

If you have a websocket connection that drops and restores a few minutes later, how could you have the server push all the data that was missed in that timeframe? My general idea for this is, when the websocket connection drops, and is restored, we call client.resetStore() which…

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
3

Subscriptions error handling?

It does not appear that subscriptions-transport-ws does anything particularly useful if an exception is thrown when the subscribe field is called. It does not appear to obey the errors list convention that the GraphQL spec calls for. For example, given bad input, during the…

thumbsup
0
message-simple
1

How do you scale your GraphQL Subscriptions?

With Subscriptions, if the node server dies do you lose all connections to clients since the state is wiped out from the server? What's the recommended approach for scaling subscriptions out? I saw in one of the presentations talk about having stateless resolver services but you…

thumbsup
0
message-simple
1

Subscriptions with backend service

I'm trying to work out how to send events triggered within a backend system into my React app. My setup currently looks like this: Apollo Client <-----> Apollo Server <-----> Backend API/Websocket service (Rails) …

thumbsup
0
message-simple
2
Talin·33d

Multiple async iterators

I've got two different subscriptions that listen to the same pubsub channel, but only one of them ever gets called. The reason for the two different subscriptions is that they have different filtering logic - one listens for changes to a single issue, and the other listens for…

thumbsup
0
message-simple
1