This is simple node.js application with Express.js 4.x, Socket.IO 1.x, socket.io-redis and redis-sentinel.
$ git clone https://github.com/stoshiya/socket.io-redis-sample.git
$ cd socket.io-redis-sample
$ redis-server --port 6379 &
$ redis-server --port 6380 slaveof 127.0.0.1 6379 &
$ redis-sentinel ./conf/sentinel0.conf &
$ redis-sentinel ./conf/sentinel1.conf &
$ npm install
$ node app.js &
MIT