diff --git a/Readme.md b/Readme.md index 8e207161a2..306833c085 100644 --- a/Readme.md +++ b/Readme.md @@ -12,6 +12,7 @@ io.on('connection', function(socket){ socket.on('event', function(data){}); socket.on('disconnect', function(){}); }); +server.listen(3000); ``` ### In conjunction with `Express` @@ -26,6 +27,7 @@ var app = require('express')(); var server = require('http').Server(app); var io = require('socket.io')(server); io.on('connection', function(){ // … }); +server.listen(3000); ``` ## API