Update Client.js
This commit is contained in:
parent
abc3f017e6
commit
70d5cc4a39
|
@ -116,7 +116,7 @@ Client.prototype.connect = function() {
|
|||
});
|
||||
this.ws.addEventListener("open", function(evt) {
|
||||
self.connectionTime = Date.now();
|
||||
self.sendArray([{m: "hi", x: 1, password: self.uri.includes("mppclone.com") && "lamp-baCC88WioQcRvmaPGKkHB63RiqE3QWSowPjCJDZKGGvMKeq1MfqIKwBPtYNGjdnJ"}]); //todo dont b lazy
|
||||
self.sendArray([{m: "hi", x: 1, password: /*self.uri.includes("mppclone.com") &&*/ "lamp-baCC88WioQcRvmaPGKkHB63RiqE3QWSowPjCJDZKGGvMKeq1MfqIKwBPtYNGjdnJ"}]); //todo dont b lazy
|
||||
self.pingInterval = setInterval(function() {
|
||||
self.sendArray([{m: "t", e: Date.now()}]);
|
||||
}, 20000);
|
||||
|
|
Loading…
Reference in New Issue