This commit is contained in:
hossein 2024-02-25 14:20:34 +03:30
parent 7db3ad7a1e
commit ace446a27d

View file

@ -1251,7 +1251,7 @@ const _getRoomSockets = (padID: string) => {
// it does here, but synchronously to avoid a race condition. This code will have to change when // it does here, but synchronously to avoid a race condition. This code will have to change when
// we update to socket.io v3. // we update to socket.io v3.
const room = ns.adapter.rooms?.get(padID); const room = ns.adapter.rooms?.get(padID);
if (!room) return []; if (!room) return [];
return Array.from(room) return Array.from(room)