0.0.11 • Published 5 years ago

pingzeex v0.0.11

Weekly downloads
2
License
ISC
Repository
gitlab
Last release
5 years ago

pingzeex: a Node.js javascript library

pingzeex is a simple to use, blazing fast, and thoroughly tested integration platform which helps users to connect and integrate apps , hardware , databases , servers , mircoservices

Note: This module does work in the browser. The client in the docs is a reference to both front end and back end with the role of a client communication.

Table of Contents

Protocol support

  • HyBi drafts 07-12 (Use the option protocolVersion: 8)
  • HyBi drafts 13-17 (Current default, alternatively option protocolVersion: 13)
  • MQTT v3.1.1 (Current default, alternatively option MQTT v5)

Installing

npm install --save pingzeex

API docs

Usage examples

Sending and receiving text data

const PingzeeX = require('pingzeex');

const app = PingzeeX.connect('123456870'); /* unique configuration key */

app.on("data", function (data) {
  if (data.type === 0) {
    /* 0 = handshake done */
      
   app.send("Hello World !", "echo");

  }
  if (data.type !== 0 ) {
    /* 1 = incoming message */
    console.log(data);
  }
});

/* Error handling */
app.on("error",function(err){

    throw(err)
})

Finding the connection name and rx uid

const PingzeeX = require('pingzeex');

const app = PingzeeX.connect('123456870');

app.on("data", function (data) {
  if (data.type === 0) {
    console.log(this.con_name,this.rx_uid);
  }
});

app.on("error",function(err){

    console.log(err);
})

Changelog

We're using the GitHub releases for changelog entries.

License

MIT

0.0.10

5 years ago

0.0.11

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago