This commit is contained in:
parent
4bfea68b90
commit
f39316e82e
|
@ -116,7 +116,7 @@ Client.prototype.connect = function() {
|
|||
});
|
||||
this.ws.addEventListener("open", function(evt) {
|
||||
self.connectionTime = Date.now();
|
||||
self.sendArray([{m: "hi"}]);
|
||||
self.sendArray([{m: "hi", x: 1}]);
|
||||
self.pingInterval = setInterval(function() {
|
||||
self.sendArray([{m: "t", e: Date.now()}]);
|
||||
}, 20000);
|
||||
|
|
Loading…
Reference in New Issue