Ensure message is always defined
This commit is contained in:
committed by
James Coglan
parent
309b5651a7
commit
5f6873ebc0
@@ -171,6 +171,7 @@ var instance = {
|
||||
|
||||
pong: function(message) {
|
||||
if (this.readyState > 1) return false;
|
||||
message = message ||'';
|
||||
return this.frame(message, 'pong');
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user