GraphQL Subscriptions: Why we use SSE/Fetch over WebSockets
What is a GraphQL Subscription?
GraphQL Subscriptions allow a client to subscribe to changes.
Instead of polling for changes, the client can receive updates in real-time.
Here's a simple example from our GraphQL Federation Demo:
subscription {
up...
stefanatwundergraph.hashnode.dev12 min read