playsocketjs 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2243,10 +2243,7 @@ class PlaySocket {
|
|
|
2243
2243
|
break;
|
|
2244
2244
|
|
|
2245
2245
|
case 'reconnection_failed':
|
|
2246
|
-
if (this.#pendingReconnect)
|
|
2247
|
-
this.#triggerEvent("status", `Reconnection failed: ${message.reason}`);
|
|
2248
|
-
this.#pendingReconnect.reject(new Error("Reconnection failed: " + message.reason));
|
|
2249
|
-
}
|
|
2246
|
+
if (this.#pendingReconnect) this.#pendingReconnect.reject(new Error("Server rejected reconnection: " + message.reason));
|
|
2250
2247
|
break;
|
|
2251
2248
|
|
|
2252
2249
|
case 'room_created':
|