mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Merge branch 'master' of github.com:Pita/etherpad-lite into HEAD
This commit is contained in:
commit
7a10e1783a
11 changed files with 209 additions and 92 deletions
|
@ -58,6 +58,12 @@ exports.setSocketIO = function(_socket)
|
|||
|
||||
client.on('message', function(message)
|
||||
{
|
||||
if(message.protocolVersion && message.protocolVersion != 2)
|
||||
{
|
||||
console.error("Protocolversion header is not correct:" + JSON.stringify(message));
|
||||
return;
|
||||
}
|
||||
|
||||
//route this message to the correct component, if possible
|
||||
if(message.component && components[message.component])
|
||||
{
|
||||
|
@ -71,7 +77,7 @@ exports.setSocketIO = function(_socket)
|
|||
}
|
||||
else
|
||||
{
|
||||
throw "Can't route the message:" + JSON.stringify(message);
|
||||
console.error("Can't route the message:" + JSON.stringify(message));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue