Skip to content

Latest commit

 

History

History
 
 

graphql-yoga-sse-subscriptions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

WunderGraph subscriptions example - SSE with graphql-yoga

Configuration

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

Getting started

npm install && npm start

Check results

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

SSE output

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

TS operation

curl -N http://localhost:9991/operations/users/get?id=1

Learn More

Read the Docs.

Deploy to WunderGraph Cloud

Deploy to WunderGraph

Got Questions?

Join us on Discord!