0.2.2 • Published 10 years ago
bus.io-client v0.2.2
The client interface for bus.io. Built on top of socket.io-client.
npm install bus.io-client
var sock = require('bus.io-client')('ws://localhost:3000');
sock.on('connect', function () {
sock.deliver({
action:'say',
content:'Hello'
});
sock.msg({
action:'say',
content:'Hello'
}).deliver();
sock.emit('say', 'Hello');
});
sock.on('say', function (msg) {
console.log(msg.content());
});
Features
- Exposes underlying socket.io-client interface.
- Sends and Receives
Message
objects. - Runs in the browser too.
Installation and Environment Setup
Install node.js (See download and install instructions here: http://nodejs.org/).
Clone this repository
> git clone git@github.com:turbonetix/bus.io-client.git
cd into the directory and install the dependencies
> cd bus.io-client
> npm install && npm shrinkwrap --dev
Running Tests
Install coffee-script
> npm install coffee-script -g
Tests are run using grunt. You must first globally install the grunt-cli with npm.
> sudo npm install -g grunt-cli
Unit Tests
To run the tests, just run grunt
> grunt spec
0.2.2
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.0
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.0-1
10 years ago
0.0.0
10 years ago
0.0.0-alpha12
10 years ago
0.0.0-alpha11
10 years ago
0.0.0-alpha10
10 years ago
0.0.0-alpha9
10 years ago
0.0.0-alpha8
10 years ago
0.0.0-alpha7
10 years ago
0.0.0-alpha6
10 years ago
0.0.0-alpha5
10 years ago
0.0.0-alpha4
10 years ago
0.0.0-alpha2
10 years ago
0.0.0-alpha1
10 years ago
0.0.0-alpha
10 years ago
0.0.1
10 years ago