Sockjs Multichannel
===================
sockjs-multichannel is a small library on top of SockJS that allows you to create channels (multiplex) over a single SockJS connection also have the ability to create server and client in node instead only in browsers. It's created based on library websocket-multiplex
To learn more about the problem of multiplexing channels in a single connection please read more here
How to use
===================
Create server and register one channel
var http = ;var express = ;var sockjs = ;var multichannelServer = server; var sockjs_opts = sockjs_url: "http://cdn.sockjs.org/sockjs-0.3.min.js";var service = sockjs; var multiplexer = service; var red = multiplexer;red;var app = ;var server = http; service;console;server;app;
Create a client in node
var multichannelClient = client; var multiClient = "http://localhost:9999/multiplex"; var red = multiClient; { channel; channel; channel;} ; ;
See a more detailed examples here
I hope it's useful!