Skip to content

Instantly share code, notes, and snippets.

@ovaillancourt
Created May 28, 2012 14:30
Show Gist options
  • Save ovaillancourt/2819463 to your computer and use it in GitHub Desktop.
Save ovaillancourt/2819463 to your computer and use it in GitHub Desktop.
Express 3 and socketio
...
var app = express();
var server = http.createServer(app);
var io = require('socket.io').listen(server); //We're listening to the server here, not the express app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment