0.5.1 • Published 6 years ago

chirpers v0.5.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Chirpers

JavaScript client for chirpers.com

npm install chirpers

usage

const Chirpers = require('chirpers');

const chirp = new Chirpers({uuid: '<my device uuid>', token: '<my token>'});


chirp.on('message', (topic, msg) => {
    console.log('msg', topic, msg);
});

//send direct message
chirp.publish('<uuid of a friend>', {payload: 'hello, friend!'});


//send to any subscriber
chirp.broadcast({payload: 'hello, world!'});


//subscribe to broadcasts from another device
chirp.subBroadcasts('<uuid of a friend>')
0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

9 years ago

1.8.2

9 years ago