* fix region (#1)

[example: eu insteal us]
This commit is contained in:
Ig0rr0
2019-07-07 01:03:19 +03:00
committed by Martin M
parent 418c2d94b1
commit 003b88053b

View File

@@ -19,7 +19,7 @@ class eWeLink {
} }
this.apiUrl = `https://${region}-api.coolkit.cc:8080/api`; 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.email = email;
this.password = password; this.password = password;
this.at = at; this.at = at;