0.1.1 • Published 9 years ago

wabash-network v0.1.1

Weekly downloads
4
License
GPL-1.0+
Repository
github
Last release
9 years ago

Wabash!

Wabash is a public message bus. Its like listening to the radio- tune in to a channel, and start communicating with anything else that may be on the same channel. Its like a chat room even; In fact, Wabash at it's core is a stock irc client!

Wabash wraps all of the useful features of the irc protocol up in a very simple and flexible api designed to connect the worlds devices in a new way.

Wabash is the internet FOR things. Just connect and communicate.

  • Global message broadcasting
  • Namespaced message filters

Caution

Wabash-node is in early development, changes are inevitable, resistance is futile.

I'll try to lock down the api soon!

[Bug Reports](https://github.com/Cryptonic26/wabash-node/issues) are welcome.

Install

  npm install wabash-network

Example

//Live Example

var WabashClient = require('wabash-network');

var client = new WabashClient({
    userId: 'GuestUser',
    apiKey: '0000-00000000-0000'
});

client.listen('/public/cryptonic26/sensors/temperature',
{
        //message query object
        source:  'CryptonicsOfficeTemperature',
        message: 'temperature'
},

    function (message) {

        //report current temperature
        console.log('The temperature inside Cryptonic\'s office is',
                     message.currentTemperature,
                    'Degrees F'
        );

        //report average temerature
        console.log('With an average of',
                     message.averageTemperature,
                    'Degrees F'
        );

    }

);

More

For more bleeding edge docs and information about Wabash, visit Cryptonic26.gitHub.io/wabash-node

Contact

email ~ Cryptonic26@gmail.com