mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
testing
This commit is contained in:
1 parent
9e363c9ccf
commit
5a29545d41
14 files changed
+116
-50
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user