added mrt, dev

This commit is contained in:
PxlLoewe
2025-05-18 23:21:08 -07:00
parent 6b58f564b2
commit 1b16b365bd
25 changed files with 514 additions and 5 deletions

View File

@@ -76,6 +76,11 @@ export const handleConnectPilot =
io.to("dispatchers").emit("pilots-update");
io.to("pilots").emit("pilots-update");
io.to(`user:${connectedAircraftEntry.userId}`).emit(
"aircraft-update",
connectedAircraftEntry,
);
// Add a listener for station-specific events
socket.on(`station:${stationId}:event`, async (data) => {
console.log(`Received event for station ${stationId}:`, data);