A community-maintained fork of the original graphql-subscriptions package (v2 branch), updated to version 3.0.3 with modern TypeScript types and async iterator support. This package provides a simple pub/sub mechanism (default EventEmitter-based) to implement GraphQL subscriptions, allowing decoupled communication between mutation resolvers and subscription resolvers. It retains the exact same API as the original, making migration seamless for existing users. Peer dependency on graphql ^15.7.2 || ^16.0.0. The fork exists because the original library was near-abandoned, but this version tracks the release-3.0 branch for compatibility with graphql-code-generator. Alternative to using graphql-subscriptions (original) or other subscription libraries like graphql-ws.
npm install graphql-subscriptions-continuedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creation of PubSub instance, publishing an event, and subscribing with filter using withFilter.
Uninstall graphql-subscriptions and use only graphql-subscriptions-continued.
Use external pubsub implementations like graphql-redis-subscriptions or graphql-mqtt-subscriptions.
Migrate to graphql-subscriptions-continued or use graphql-ws directly.
Add 'es2018.asynciterable' to 'lib' in tsconfig.json.
Run npm install graphql-subscriptions-continued graphql and ensure tsconfig.json includes 'es2018.asynciterable' in lib.
Upgrade to v3 and use named import: import { PubSub } from 'graphql-subscriptions-continued';Define resolver as { subscribe: () => pubsub.asyncIterator(TOPIC) } instead of a plain function.Ensure subscribe function returns pubsub.asyncIterator(TOPIC).