sockjs = new SockJS(sockjs_url, null, {sessionId : 4 });
sockjs_echo.on('connection', function(conn) {
console.log(conn.sessionId);
--
You received this message because you are subscribed to the Google Groups "sockjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sockjs+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
var sockjs = require('sockjs');
var sockjs_opts = {sockjs_url: "http://cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js"};
var sockjs_echo = sockjs.createServer(sockjs_opts);
// sockjs connect
sockjs_echo.on('connection', function(conn) {
console.log(conn._session.session_id);
$ npm --depth=-0 list
├── async@1.2.1
├── cron@1.0.9 extraneous
├── hiredis@0.4.0
├── node-static@0.7.6
├── redis@0.12.1
└── sockjs@0.3.15