Created
February 6, 2018 16:48
-
-
Save nathanpeck/abd6aca0128f62dc7afa591f5e9bd0c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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