
yarn add @graphql-ez/plugin-ssepnpm add @graphql-ez/plugin-ssenpm install @graphql-ez/plugin-sseIntegration 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-sseMIT0.2.2May 18th, 2022