Check only Protocolversion of messages that have one
parent
a4b9427896
commit
b8c1d0b8bd
|
@ -58,7 +58,7 @@ exports.setSocketIO = function(_socket)
|
||||||
|
|
||||||
client.on('message', function(message)
|
client.on('message', function(message)
|
||||||
{
|
{
|
||||||
if(!message.protocolVersion|| message.protocolVersion != 2)
|
if(message.protocolVersion && message.protocolVersion != 2)
|
||||||
{
|
{
|
||||||
console.error("Protocolversion header is not correct:" + JSON.stringify(message));
|
console.error("Protocolversion header is not correct:" + JSON.stringify(message));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue