GraphQL subscriptions with Pusher

Usage no npm install needed!

<script type="module">
  import waptikGraphqlPusherSubscriptions from 'https://cdn.skypack.dev/@waptik/graphql-pusher-subscriptions';


@waptik/graphql-pusher-subscriptions. A fork of alefemafra/graphql-pusher-subscriptions

This package implements the PubSubEngine Interface from the graphql-subscriptions package and also the new AsyncIterator interface. It allows you to connect your subscriptions manger to a Pusher channel and bind to multiple events.


After creating an account and configuring a channel on pusher, you get the necessary config information about your application. Keep the config information in a safe place.

import { PusherChannel } from "@waptik/graphql-pusher-subscriptions";

const pubsub = new PusherChannel({
  appId: "YOUR_APP_ID",
  key: "APP_KEY",
  secret: "SECRET",
  channel: "CHANNEL_NAME",