Skip to content

Commit

Permalink
Removed rooms argument from talker.broadcast, it's single argument now
Browse files Browse the repository at this point in the history
is content which it broadcasts to all rooms. If you want send a message
to multiple specific rooms you can for example use this instead: ['room1', 'room2'].forEach(function() {
talker.message(room, content); });
  • Loading branch information
riovv committed Jan 12, 2012
1 parent c6dd0e0 commit 7551e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/talker.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ talker.message = function (room, content) {
talker.room[room].log('<'.blue, request.content);
};

talker.broadcast = function (content, rooms) {
talker.broadcast = function (content) {
rooms = rooms || Object.keys(talker.room);

rooms.forEach(function (room) {
Expand Down

0 comments on commit 7551e65

Please sign in to comment.