Comparing version 5.0.2 to 5.0.3
{ | ||
"name": "cometd", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Comet and WebSocket library for web messaging", | ||
@@ -5,0 +5,0 @@ "keywords": ["comet", "websocket", "messaging", "pubsub", "publish", "subscribe", "rpc", "p2p", "peer-to-peer"], |
@@ -200,8 +200,9 @@ /* | ||
this.incoming = function(message) { | ||
if (message.successful) { | ||
switch (message.channel) { | ||
case '/meta/handshake': | ||
{ | ||
switch (message.channel) { | ||
case '/meta/handshake': | ||
{ | ||
// Only record the handshake response if it's successful. | ||
if (message.successful) { | ||
// If the handshake response is already present, then we're replaying it. | ||
// Since the replay may have modified the handshake response, do not record it here. | ||
// Since the replay may have modified the handshake response, do not record it again. | ||
if (!_state.handshakeResponse) { | ||
@@ -212,22 +213,26 @@ // Save successful handshake response | ||
} | ||
break; | ||
} | ||
case '/meta/connect': | ||
{ | ||
if (_batch) { | ||
_batch = false; | ||
_cometd.endBatch(); | ||
} | ||
break; | ||
break; | ||
} | ||
case '/meta/connect': | ||
{ | ||
if (_batch) { | ||
_batch = false; | ||
_cometd.endBatch(); | ||
} | ||
case '/meta/disconnect': | ||
{ | ||
_state = {}; | ||
break; | ||
break; | ||
} | ||
case '/meta/disconnect': | ||
{ | ||
if (_batch) { | ||
_batch = false; | ||
_cometd.endBatch(); | ||
} | ||
default: | ||
{ | ||
break; | ||
} | ||
_state = {}; | ||
break; | ||
} | ||
default: | ||
{ | ||
break; | ||
} | ||
} | ||
@@ -234,0 +239,0 @@ return message; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176333
3818