Skip to content
Aaron Belovsky edited this page Jun 8, 2017 · 1 revision

Multi-Node With Redis Adapter

const IO = require('koa-socket-2');
const Koa = require('koa');
const redis = require('socket.io-redis');

const app = new Koa();
const io = new IO();

io.attach(app);
io.adapter(redis({ host: 'localhost', port: 6379 }));
Clone this wiki locally