From f5add0968ae59de9d9046c0c729160a480512b9d Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 12 Oct 2026 17:12:01 +0200 Subject: [PATCH] Voice opcode 11: always do toArray for clients connect --- src/webrtc/opcodes/SelectProtocol.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webrtc/opcodes/SelectProtocol.ts b/src/webrtc/opcodes/SelectProtocol.ts index b07257507..3efc2a73a 100644 --- a/src/webrtc/opcodes/SelectProtocol.ts +++ b/src/webrtc/opcodes/SelectProtocol.ts @@ -41,7 +41,10 @@ export async function onSelectProtocol(this: WebRtcWebSocket, payload: VoicePayl const { voiceRoomId } = this.webRtcClient; const connectedClients = mediaServer.getClientsForRtcServer(voiceRoomId); const clientConnectData = { - user_ids: connectedClients.values().map((c) => c.user_id), + user_ids: connectedClients + .values() + .map((c) => c.user_id) + .toArray(), }; for (const client of connectedClients) {