GraphQL Yoga SSE subscriptions Example

Check the example

Configuration

1
2
3
4
5
const counter = introspect.graphql({
apiNamespace: 'counter',
url: 'http://localhost:4000/graphql',
subscriptionsUseSSE: true,
});

Getting started

1
npm install && npm start

Check results

1
curl -N http://localhost:9991/operations/Counter

SSE output

1
curl -N http://localhost:9991/operations/Counter\?wg_sse\=true

Deploy to WunderGraph Cloud

The easiest way to deploy your WunderGraph app is to use WunderGraph Cloud.

Deploy to WunderGraph

Was this article helpful to you?
Provide feedback

Edit this page