Skip to content

Commit

Permalink
Changed sockets.emit to io.sockets.emit to get the example working.
Browse files Browse the repository at this point in the history
  • Loading branch information
chees committed Oct 16, 2011
1 parent cde6a38 commit acdbacb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ io.sockets.on('connection', function (socket) {
});

socket.on('disconnect', function () {
sockets.emit('user disconnected');
io.sockets.emit('user disconnected');
});
});
```
Expand Down

0 comments on commit acdbacb

Please sign in to comment.