From c2c56a61ed723073c2c40a190646cb18a774604c Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 6 Jul 2014 00:57:32 +0200 Subject: Fix wrong event data value --- webcastor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webcastor.js b/webcastor.js index aebadb5..afbfcd4 100644 --- a/webcastor.js +++ b/webcastor.js @@ -205,8 +205,8 @@ var Server = { return; } - console.log('Broadcasting ' + JSONmessage + ' (' + messageSize + ' bytes)'); - socket.broadcast.to(channel).emit(event.name, event.args); + console.log('Broadcasting ' + JSONmessage + ' (' + messageSize + ' bytes) on channel ' + channel); + socket.broadcast.to(channel).send(event); }, }; -- cgit v1.2.3