Skip to content

Instantly share code, notes, and snippets.

@jvt
Created December 14, 2015 20:32
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 jvt/d7be71bdee6b54c14d3a to your computer and use it in GitHub Desktop.
Save jvt/d7be71bdee6b54c14d3a to your computer and use it in GitHub Desktop.
var http = require('http').Server(app);
if (clusterID === 1) {
var io = require('socket.io').listen(http);
io.on('connection', function()
{
console.log("Connection has been made");
});
}
http.listen(config.get('port') || 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment