Session middleware for socket.io v1.x;
Examples
var socketSessions = ;var io = 3000;io;
Using connect-redis for our session store.
var session = ;var RedisStore = session;var sessionStore = ;var cookieParser = ;var socketHandshake = ; var io = 3000;io;
To access the session data.
io;
Installation and Environment Setup
Install node.js (See download and install instructions here: http://nodejs.org/).
Clone this repository
> git clone git@github.com:turbonetix/socket.io-handshake.git
cd into the directory and install the dependencies
> cd socket.io-handshake
> npm install && npm shrinkwrap --dev
Running Tests
Install coffee-script
> npm install coffee-script -g
Tests are run using grunt. You must first globally install the grunt-cli with npm.
> sudo npm install -g grunt-cli
Unit Tests
To run the tests, just run grunt
> grunt spec