graphql-pusher-subscriptions
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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.

Usage

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 'graphql-pusher-subscriptions'
 
const pubsub = new PusherChannel({
  appId: 'YOUR_APP_ID',
  key: 'APP_KEY',
  secret: 'SECRET',
  cluster: 'YOUR_SELECTED_CLUSTER',
  channel: 'CHANNEL_NAME'
});
 

/graphql-pusher-subscriptions/

    Package Sidebar

    Install

    npm i graphql-pusher-subscriptions

    Weekly Downloads

    7

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    37.4 kB

    Total Files

    11

    Last publish

    Collaborators

    • sachinp-npm