@graphql-ez/plugin-sse
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

@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

Dependents (0)

Package Sidebar

Install

npm i @graphql-ez/plugin-sse

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

10.9 kB

Total Files

6

Last publish

Collaborators

  • pablosz