mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-15 02:22:38 +00:00
Voice opcode 11: always do toArray for clients connect
This commit is contained in:
@@ -41,7 +41,10 @@ export async function onSelectProtocol(this: WebRtcWebSocket, payload: VoicePayl
|
||||
const { voiceRoomId } = this.webRtcClient;
|
||||
const connectedClients = mediaServer.getClientsForRtcServer<WebRtcWebSocket>(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) {
|
||||
|
||||
Reference in New Issue
Block a user