socket.io-bundle

A collection of middlewares for upcoming Socket.IO 1.0

npm install socket.io-bundle
1 downloads in the last day
12 downloads in the last week
23 downloads in the last month

Socket.IO-bundle

Build Status

This is a collection of commonly used middlewares for upcoming Socket.IO 1.0, which I wish Socket.IO was bundled with. Socket.IO-bundle is based on Connect, so that you can easily integrate with Express and Connect.

var bundle = require('socket.io-bundle');
var server = require('http').Server();
var io = require('socket.io')(server);

io.use(bundle.cookieParser());
io.use(bundle.session({secret: 'my secret here'}));
io.use(bundle.csrf());

server.listen(3000);

License

MIT

npm loves you