fixing the bug with transport closed disconnection

This commit is contained in:
talksik
2022-05-08 13:33:10 -05:00
parent 26e6a141f1
commit ffbb6b6f31
+6 -4
View File
@@ -282,10 +282,12 @@ export default function InitializeWs(io: any) {
// get fresh list of tuned in folks without me
const clientUserIdsInRoom = [
...(io.sockets.adapter.rooms.get(roomName) ?? []),
].map(
(otherUserSocketId: string) =>
socketIdsToUserIds[otherUserSocketId]
);
]
.filter((mappedSocketId) => mappedSocketId !== socket.id)
.map(
(otherUserSocketId: string) =>
socketIdsToUserIds[otherUserSocketId]
);
io.in(roomName).emit(
ServerResponseChannels.SOMEONE_UNTUNED_FROM_LINE,