This commit is contained in:
Milos Kozak 2023-02-15 16:49:38 +01:00
parent 24456e3c5d
commit 5282d9082a

View file

@ -401,7 +401,7 @@ class NSClientV3Plugin @Inject constructor(
it.put("accessToken", sp.getString(R.string.key_ns_client_token, ""))
}
rxBus.send(EventNSClientNewLog("► WS", "requesting auth for alarms"))
socket?.emit("subscribe", authMessage, Ack { args ->
socket.emit("subscribe", authMessage, Ack { args ->
val response = args[0] as JSONObject
wsConnected = if (response.optBoolean("success")) {
rxBus.send(EventNSClientNewLog("◄ WS", response.optString("message")))