Skip to content

Commit

Permalink
Renamed Manager#for with Manager#of in examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jun 9, 2011
1 parent a4cac1e commit 81dd623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ The following example defines a socket that listens on '/chat' and one for
var io = require('socket.io').listen(80);

var chat = io
.for('/chat');
.of('/chat');
.on('connection', function (socket) {
socket.emit('a message', { that: 'only', '/chat': 'will get' });
chat.emit('a message', { everyone: 'in', '/chat': 'will get' });
});

var news = io
.for('/news');
.of('/news');
.on('connection', function (socket) {
socket.emit('item', { news: 'item' });
});
Expand Down

0 comments on commit 81dd623

Please sign in to comment.