This commit is contained in:
NoLogicAlan committed 2026-05-28 17:40:18 +03:00
1 parent 9e363c9ccf
commit 5a29545d41
14 files changed
+116 -50

No files matched your search

+10
View File
@@ -523,6 +523,16 @@ export class FluxerRevoice extends EventEmitter {
nativeConnection,
});
room.on(RoomEvent.ConnectionStateChanged, (cs) => {
if (cs === ConnectionState.CONN_RECONNECTING || cs === 2) {
logger.player(`[FluxerRevoice] Room reconnecting for channel ${channelId}`);
} else if (cs === ConnectionState.CONN_CONNECTED || cs === 1) {
if (connection._destroyed) return;
connection._connected = true;
logger.player(`[FluxerRevoice] Room (re)connected for channel ${channelId}`);
}
});
room.on(RoomEvent.Disconnected, (reason) => {
const isIntentional = this._intentionalDisconnects.has(String(channelId));
const reasonLabel = isIntentional ? "intentional" : (reason ?? "unexpected");