From 7551e6527726e723a1e34365cf4f2c71ed670a7c Mon Sep 17 00:00:00 2001 From: Patric Nordmark Date: Thu, 12 Jan 2012 08:37:32 +0100 Subject: [PATCH] Removed rooms argument from talker.broadcast, it's single argument now 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); }); --- lib/talker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/talker.js b/lib/talker.js index 218d150..6457512 100644 --- a/lib/talker.js +++ b/lib/talker.js @@ -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) {