Skip to content

Instantly share code, notes, and snippets.

@rubentd
Last active May 14, 2016 06:44
Show Gist options
  • Select an option

  • Save rubentd/86fb6bedca334f45d1f221c8797ba8d4 to your computer and use it in GitHub Desktop.

Select an option

Save rubentd/86fb6bedca334f45d1f221c8797ba8d4 to your computer and use it in GitHub Desktop.
//Static resources server
app.use(express.static(__dirname + '/www'));
var server = app.listen(8082, function () {
var port = server.address().port;
console.log('Server running at port %s', port);
});
var io = require('socket.io')(server);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment