0.2.2 • Published 11 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
11 years ago
0.2.1
11 years ago
0.2.0
11 years ago
0.1.0
11 years ago
0.0.3
11 years ago
0.0.2
11 years ago
0.0.0-1
11 years ago
0.0.0
11 years ago
0.0.0-alpha12
11 years ago
0.0.0-alpha11
11 years ago
0.0.0-alpha10
11 years ago
0.0.0-alpha9
11 years ago
0.0.0-alpha8
11 years ago
0.0.0-alpha7
11 years ago
0.0.0-alpha6
11 years ago
0.0.0-alpha5
11 years ago
0.0.0-alpha4
11 years ago
0.0.0-alpha2
11 years ago
0.0.0-alpha1
11 years ago
0.0.0-alpha
11 years ago
0.0.1
11 years ago