Update Client.js
This commit is contained in:
parent
54a23acf4b
commit
0a2f20c13a
|
@ -116,7 +116,7 @@ Client.prototype.connect = function() {
|
||||||
});
|
});
|
||||||
this.ws.addEventListener("open", function(evt) {
|
this.ws.addEventListener("open", function(evt) {
|
||||||
self.connectionTime = Date.now();
|
self.connectionTime = Date.now();
|
||||||
self.sendArray([{m: "hi", x: 1, password: /*self.uri.includes("mppclone.com") &&*/ "141777bd0f408111c5fc7ad9.538fdaf2-04b1-46c9-bdd4-f6e901080236"}]); //todo dont b lazy
|
self.sendArray([{m: "hi", x: 1, token: /*self.uri.includes("mppclone.com") &&*/ "141777bd0f408111c5fc7ad9.538fdaf2-04b1-46c9-bdd4-f6e901080236"}]); //todo dont b lazy
|
||||||
self.pingInterval = setInterval(function() {
|
self.pingInterval = setInterval(function() {
|
||||||
self.sendArray([{m: "t", e: Date.now()}]);
|
self.sendArray([{m: "t", e: Date.now()}]);
|
||||||
}, 20000);
|
}, 20000);
|
||||||
|
|
Loading…
Reference in New Issue