# xpush-client

> Realtime communication channel server and node module.

Latest version **0.0.5** (published 2014-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install xpush-client
pnpm add xpush-client
yarn add xpush-client
bun add xpush-client
```

## 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.0.5 |
| Published | 2014-10-11 |
| First published | 2014-09-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Maintainers | 0nlyoung7 |
| Keywords | push, websocket, gcm, apn, channel, client |

## Links

- npm: https://www.npmjs.com/package/xpush-client
- Repository: https://github.com/xpush/node-xpush-client
- Issues: https://github.com/xpush/node-xpush-client/issues
- npm.io page: https://npm.io/package/xpush-client

## Dependencies (1)

- [socket.io-client](https://npm.io/package/socket.io-client.md) 1.1.0

## 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.5 (latest) — 2014-10-11
- 0.0.3 — 2014-09-27
- 0.0.2 — 2014-09-26
- 0.0.1 — 2014-09-25

## README

node-xpush-client
=================

xpush client for node.js

This is almost the same with xpush javascript library in [lib-xpush-web](https://github.com/xpush/lib-xpush-web)

##About XPUSH

http://xpush.github.io/about/

##Installation

```bash
$ npm install xpush-client
```

##Usage Examples

```
var XPush = require( 'xpush-client' );

var xpush = new XPush('http://demo.stalk.io:8000', 'demo' );

xpush.createSimpleChannel('channel01', function(){

  // `message` event listener
  xpush.on( 'message', function(channel, name, data){
    console.log( data ); // This will display message, Hello world
  });

  /**
   *@param {string} channel - Channel Id
   * @param {string} name - event name `message`
   * @param {string} mag - message to send
   */  
  xpush.send( 'channel01', 'message', 'Hello world' );
});

```

##Documentation

http://xpush.github.io/doc/library/javascript/

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