paint-brush
GraphQL Subscriptions: Using SSE/Fetch over Websocketsby@growthatwundergraph
2,337 reads
2,337 reads

GraphQL Subscriptions: Using SSE/Fetch over Websockets

by WunderGraph April 27th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.
featured image - GraphQL Subscriptions: Using SSE/Fetch over Websockets
WunderGraph  HackerNoon profile picture
WunderGraph

WunderGraph

@growthatwundergraph

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite