From 003b88053b659ebb8450620dc40b318f92a841fc Mon Sep 17 00:00:00 2001 From: Ig0rr0 <190rr0@gmail.com> Date: Sun, 7 Jul 2019 01:03:19 +0300 Subject: [PATCH] * fix region (#1) [example: eu insteal us] --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index a5d0142..7bb5b19 100644 --- a/main.js +++ b/main.js @@ -19,7 +19,7 @@ class eWeLink { } this.apiUrl = `https://${region}-api.coolkit.cc:8080/api`; - this.apiWebSocket = 'wss://us-pconnect3.coolkit.cc:8080/api/ws'; + this.apiWebSocket = `wss://${region}-pconnect3.coolkit.cc:8080/api/ws`; this.email = email; this.password = password; this.at = at;