# graphql-pusher-subscriptions

> GraphQL subscriptions with Pusher

Latest version **0.1.1** (published 2020-08-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install graphql-pusher-subscriptions
pnpm add graphql-pusher-subscriptions
yarn add graphql-pusher-subscriptions
bun add graphql-pusher-subscriptions
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2020-08-06 |
| First published | 2020-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 36.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sachin Pandey |
| Maintainers | sachinp-npm |

## Links

- npm: https://www.npmjs.com/package/graphql-pusher-subscriptions
- npm.io page: https://npm.io/package/graphql-pusher-subscriptions

## Dependencies (4)

- [pusher](https://npm.io/package/pusher.md) ^3.0.1
- [iterall](https://npm.io/package/iterall.md) ^1.2.2
- [pusher-js](https://npm.io/package/pusher-js.md) ^6.0.3
- [graphql-subscriptions](https://npm.io/package/graphql-subscriptions.md) ^1.1.0

## Recent versions

- 0.1.1 (latest) — 2020-08-06

## README

# 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. 

```javascript
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'
});

```

---
_Source: https://npm.io/package/graphql-pusher-subscriptions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
