fixing the bug with transport closed disconnection
This commit is contained in:
@@ -282,7 +282,9 @@ export default function InitializeWs(io: any) {
|
||||
// get fresh list of tuned in folks without me
|
||||
const clientUserIdsInRoom = [
|
||||
...(io.sockets.adapter.rooms.get(roomName) ?? []),
|
||||
].map(
|
||||
]
|
||||
.filter((mappedSocketId) => mappedSocketId !== socket.id)
|
||||
.map(
|
||||
(otherUserSocketId: string) =>
|
||||
socketIdsToUserIds[otherUserSocketId]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user