summaryrefslogtreecommitdiff
path: root/src/node/handler
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2014-11-04 19:58:38 +0000
committerJohn McLear <john@mclear.co.uk>2014-11-04 19:58:38 +0000
commita6cbb4af409b5448e2b27d4f28234efd8c0e3c17 (patch)
treeac88a87cda5a4b2aa4685d886ba552103737099d /src/node/handler
parent68eaa09708241b0551f5d345f45d8f7ba00913d2 (diff)
downloadetherpad-lite-a6cbb4af409b5448e2b27d4f28234efd8c0e3c17.zip
working messages
Diffstat (limited to 'src/node/handler')
-rw-r--r--src/node/handler/PadMessageHandler.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js
index 2072a784..0dc18d7e 100644
--- a/src/node/handler/PadMessageHandler.js
+++ b/src/node/handler/PadMessageHandler.js
@@ -805,8 +805,7 @@ exports.updatePadClients = function(pad, callback)
if(author == sessioninfos[sid].author)
{
- // client.json.send({"type":"COLLABROOM","data":{type:"ACCEPT_COMMIT", newRev:r}});
- socketio.in(pad).send({"type":"COLLABROOM","data":{type:"ACCEPT_COMMIT", newRev:r}});
+ client.json.send({"type":"COLLABROOM","data":{type:"ACCEPT_COMMIT", newRev:r}});
}
else
{
@@ -821,9 +820,7 @@ exports.updatePadClients = function(pad, callback)
timeDelta: currentTime - sessioninfos[sid].time
}};
- // client.json.send(wireMsg);
- socketio.in(pad).send({"type":"COLLABROOM","data":{type:"ACCEPT_COMMIT", newRev:r}});
-
+ client.json.send(wireMsg);
}
sessioninfos[sid].time = currentTime;