Skip to content

Instantly share code, notes, and snippets.

@nathanpeck
Created February 6, 2018 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanpeck/abd6aca0128f62dc7afa591f5e9bd0c6 to your computer and use it in GitHub Desktop.
Save nathanpeck/abd6aca0128f62dc7afa591f5e9bd0c6 to your computer and use it in GitHub Desktop.
var server = require('http').createServer(app);
var io = require('socket.io')(server);
var redis = require('socket.io-redis');
io.adapter(redis({ host: process.env.REDIS_ENDPOINT, port: 6379 }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment