diff options
author | Pacien TRAN-GIRARD | 2014-07-06 00:57:32 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-07-06 00:57:32 +0200 |
commit | c2c56a61ed723073c2c40a190646cb18a774604c (patch) | |
tree | 7911d3878a09962f955af0a7610a518c6ff6030a | |
parent | aa36ed8b5e0e1f9eef4a7520829cf5d632f753b9 (diff) | |
download | webcastor-c2c56a61ed723073c2c40a190646cb18a774604c.tar.gz |
Fix wrong event data value
-rw-r--r-- | webcastor.js | 4 |
1 files 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 = { | |||
205 | return; | 205 | return; |
206 | } | 206 | } |
207 | 207 | ||
208 | console.log('Broadcasting ' + JSONmessage + ' (' + messageSize + ' bytes)'); | 208 | console.log('Broadcasting ' + JSONmessage + ' (' + messageSize + ' bytes) on channel ' + channel); |
209 | socket.broadcast.to(channel).emit(event.name, event.args); | 209 | socket.broadcast.to(channel).send(event); |
210 | }, | 210 | }, |
211 | }; | 211 | }; |
212 | 212 | ||