Graphql Sse Versions Save

Zero-dependency, HTTP/1 safe, simple, GraphQL over Server-Sent Events Protocol server and client.

v2.5.3

1 month ago

2.5.3 (2024-03-27)

Bug Fixes

  • use/fastify: Include middleware headers (134c1b0), closes #91

v2.5.2

4 months ago

2.5.2 (2023-12-20)

Bug Fixes

  • remove package.json workspaces entry in release (c6dc093)

v2.5.1

5 months ago

2.5.1 (2023-12-14)

Bug Fixes

  • use/koa: Use parsed body from request (#87) (b290b90)

v2.5.0

5 months ago

2.5.0 (2023-12-13)

Features

  • use/koa: expose full Koa context to options (#86) (b37a6f9)

v2.4.1

5 months ago

2.4.1 (2023-12-13)

Bug Fixes

v2.4.0

5 months ago

2.4.0 (2023-11-29)

Bug Fixes

  • client: Use closures instead of bindings (with this) (8ecdf3c)

Features

  • client: Event listeners for both operation modes (#84) (6274f44)

v2.3.0

8 months ago

2.3.0 (2023-09-07)

Features

Examples

Server usage with Koa

import Koa from 'koa'; // yarn add koa
import mount from 'koa-mount'; // yarn add koa-mount
import { createHandler } from 'graphql-sse/lib/use/koa';
import { schema } from './my-graphql';

// Create a Koa app
const app = new Koa();

// Serve all methods on `/graphql/stream`
app.use(mount('/graphql/stream', createHandler({ schema })));

app.listen({ port: 4000 });
console.log('Listening to port 4000');

v2.2.3

8 months ago

2.2.3 (2023-08-23)

Bug Fixes

  • use/http,use/http2,use/express,use/fastify: Check writable instead of closed before writing to response (3c71f69), closes #69

v2.2.2

8 months ago

2.2.2 (2023-08-22)

Bug Fixes

  • use/http,use/http2,use/express,use/fastify: Handle cases where response's close event is late (#75) (4457cba), closes #69

v2.2.1

9 months ago

2.2.1 (2023-07-31)

Bug Fixes

  • handler: Always include the data field in stream messages (#71) (4643c9a)