# nusher

> Yet another pusher client for node.js

Latest version **0.0.2-1** (published 2013-05-16) · 0 weekly downloads

## Install

```sh
npm install nusher
pnpm add nusher
yarn add nusher
bun add nusher
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2-1 |
| Published | 2013-05-16 |
| First published | 2013-05-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | alberto.zaccagni@lazywithclass.com |
| Maintainers | lazywithclass |
| Keywords | pusher, websockets, realtime |

## Links

- npm: https://www.npmjs.com/package/nusher
- Repository: git@github.com:lazywithclass/nusher
- npm.io page: https://npm.io/package/nusher

## Dependencies (3)

- [node-uuid](https://npm.io/package/node-uuid.md) ~1.4.0
- [websocket](https://npm.io/package/websocket.md) ~1.0.1
- [eventemitter2](https://npm.io/package/eventemitter2.md) ~0.4.11

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.2-1 (latest) — 2013-05-16
- 0.0.2 — 2013-05-16
- 0.0.1 — 2013-05-16

## README

# Yet another pusher client for node.js

This is a (diverged) fork of Abhishiv's work at https://github.com/abhishiv/pusher-node-client, so credit to him for writing this in the first place.
The main difference is that `nusher` is using https://github.com/hij1nx/EventEmitter2 so you could invoke `onAny` on a channel.

## How to use it

```javascript
PusherClient = require('nusher')

pusher_client = new PusherClient
  appId: (process.env.PUSHER_APP_ID or app_id)
  key: (process.env.PUSHER_KEY or pusher_key)
  secret: (process.env.PUSHER_SECRET or pusher_secret)

pusher_client.on 'connect', ->
  channel = pusher_client.subscribe('presence-users', {user_id: 'system'})

  channel.on 'success', ->

    channel.on 'pusher_internal:member_removed', (data) ->
      console.log 'member_removed'

    channel.on 'pusher_internal:member_added', (data) ->
      console.log 'member_added'

pusher_client.connect()
```

## License

This code is free to use under the terms of the MIT license.

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