SockJS client for Node
JavaScript CoffeeScript
#3 Compare This branch is 3 commits ahead, 3 commits behind sockjs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
.gitignore
.npmignore
README.md
index.js
package.json

README.md

SockJS Client Node

Node client for SockJS. Currently, only the WebSocket transport is supported.

Usage

var sjsc = require('sockjs-client-ws');
var client = sjsc.create("http://localhost/sjsServer");
client.on('connection', function () { // connection is established });
client.on('data', function (msg) { // received some data });
client.on('error', function (e) { // something went wrong });
client.write("Have some text you mighty SockJS server!");