Our great sponsors
-
graphql-ws
Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.
Have you thought about using graphql-ws instead? It uses the new graphql-transport-ws protocol which also has an open RFC that is discussed in the GraphQL working Groups.
-
apollo-server
🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
It seems like onDisconnect is only invoked when the client destroys the WebSocket connection, thus you could ensure that the WebSocket connection is closed on the client after logging out (if that is a possible option) (https://github.com/apollographql/apollo-server/issues/1321).
-
Appwrite
Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
-
Have you thought about using graphql-ws instead? It uses the new graphql-transport-ws protocol which also has an open RFC that is discussed in the GraphQL working Groups.
-
apollo-server plans to remove WebSocket support, which is currenlty done over the deprecated graphql-ws protocol (as implemented by the unmaintained subscription-transport-ws module by apollo), in the next major version.
Related posts
- Yoga 2.0 - a light but fully-featured GraphQL Server | GraphQL Blog
- GraphQL Subscriptions: Why we use SSE/Fetch over Websockets
- how it subscription work on the apollo server?
- [Python] What minimal application server do you run your Python x GraphQL services with? Django, Flask....
- GraphQL Observability with Sentry