Package Exports
- sockjs-client
- sockjs-client/index
- sockjs-client/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sockjs-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
SockJS Client Node
Node client for SockJS. Currently, only the XHR Streaming transport is supported.
Usage
var sjsc = require('sockjs-client');
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!");