Skip to content

tcr/sockjs-client-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!");

About

SockJS client for Node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%