apollo-offline icon indicating copy to clipboard operation
apollo-offline copied to clipboard

Subscriptions

Open G3z opened this issue 7 years ago • 2 comments

I get that it's not possible tu support subscriptions while offline but at the moment i receive an error if subscriptions are used. probably the provided networkInterface doen't have the subscribe && unsubscribe functions implemented schermata 2017-09-11 alle 11 57 20

G3z avatar Sep 11 '17 09:09 G3z

@G3z, can you please provide the code you are using to set up your Apollo client? I suspect you are applying GraphQL subscriptions to the network interface before you wrap it using Apollo-Offline.

As of now, Apollo-Offline does not natively support GraphQL subscriptions. This is why you currently have to apply subscriptions to the Apollo-Offline-wrapped network interface (so after - not before - you wrap it).

I plan on adding native support and proper offline fallbacks for subscriptions in the near future. (But we're just not quite there yet.)

Until then, I hope to assist you in finding a suitable workaround.

PaulBrachmann avatar Sep 13 '17 10:09 PaulBrachmann

Any updates on this?

StefanFabian avatar Dec 24 '18 14:12 StefanFabian