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