Skip to content

Commit

Permalink
Readme: added listen to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jan 28, 2013
1 parent cef1583 commit 2102eb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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
Expand Down

0 comments on commit 2102eb4

Please sign in to comment.