@graphql-ez/plugin-sse
v0.3.1
Published
Integration with [graphql-sse](https://github.com/enisdenjo/graphql-sse) - [GraphQL over Server-Sent Events Protocol](https://github.com/enisdenjo/graphql-sse/blob/master/PROTOCOL.md)
Downloads
13
Readme
@graphql-ez/plugin-sse
Integration with graphql-sse - GraphQL over Server-Sent Events Protocol
Compatibility
This plugins supports:
Options
Check HandlerOptions graphql-sse docs for some information, from there, you can ignore 'execute'
, 'subscribe'
, 'validate'
, 'onSubscribe'
, 'schema'
and 'context'
Usage
import { ezSSE } from '@graphql-ez/plugin-sse';
const ezApp = CreateApp({
ez: {
plugins: [
ezSSE({
options: {
// ...
},
// "/graphql/stream" is the default
path: '/graphql/stream',
}),
// ...
],
},
// ...
});
Credits
Thanks to @enisdenjo for working on this awesome library and protocol