Skip to content

Commit

Permalink
Merge pull request socketio#582 from chees/patch-1
Browse files Browse the repository at this point in the history
Changed sockets.emit to io.sockets.emit to get the example working.
  • Loading branch information
rauchg committed Oct 16, 2011
2 parents cde6a38 + acdbacb commit 120924f
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 120924f

Please sign in to comment.