yarn add @graphql-ez/plugin-sse
pnpm add @graphql-ez/plugin-sse
npm install @graphql-ez/plugin-sse
Integration with graphql-sse - GraphQL over Server-Sent Events Protocol
This plugins supports:
Check HandlerOptions graphql-sse docs for some information, from there, you can ignore 'execute'
, 'subscribe'
, 'validate'
, 'onSubscribe'
, 'schema'
and 'context'
import { ezSSE } from '@graphql-ez/plugin-sse';
const ezApp = CreateApp({
ez: {
plugins: [
ezSSE({
options: {
// ...
},
// "/graphql/stream" is the default
path: '/graphql/stream',
}),
// ...
],
},
// ...
});
Thanks to @enisdenjo for working on this awesome library and protocol
@graphql-ez/plugin-sse
MIT
0.3.1
Jan 4th, 2024