Created
May 28, 2012 14:30
-
-
Save ovaillancourt/2819463 to your computer and use it in GitHub Desktop.
Express 3 and socketio
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 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