GraphQL Subscriptions: Using SSE/Fetch over Websockets
Too Long; Didn't Read
GraphQL Subscriptions allow a client to subscribe to changes. Instead of polling for changes, the client can receive updates in real-time. The most widely adopted way of implementing GraphQL is to use WebSockets. The WebSocket API is an HTTP 1.1 standard that's usually supported by all modern browsers. This way, the user interface can be updated in real time using GraphQL. Let's look at a few scenarios how you could use GraphQL subscriptions with WebSocket.