https://github.com/enisdenjo/graphql-sse/blob/master/PROTOCOL.md
const schema = `
schema {
query: Query
subscription: Subscription
}
type Query {
hello: String
}
type Subscription {
greetings: String
}
`;
const greetings = introspect.graphql({
apiNamespace: 'sse',
url: 'http://localhost:4000/graphql/stream',
loadSchemaFromString: schema,
subscriptionsUseSSE: true,
});
npm install && npm start
curl -N http://localhost:9991/operations/Sse
curl -N 'http://localhost:9991/operations/Sse?wg_sse=true'
Read the Docs.
Join us on Discord!