added auto disconnect when changing link
This commit is contained in:
@@ -70,6 +70,7 @@ export const handleConnectDispatch =
|
||||
socket.join("dispatchers"); // Dem Dispatcher-Raum beitreten
|
||||
socket.join(`user:${user.id}`); // Dem User-Raum beitreten
|
||||
|
||||
io.to(`user:${user.id}`).emit("dispatchers-update", connectedDispatcherEntry);
|
||||
io.to("dispatchers").emit("dispatchers-update");
|
||||
io.to("pilots").emit("dispatchers-update");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user