get
https://example.com/api/v1/map/sse
Server-Sent Events stream for real-time aircraft updates.
Event Types:
aircraft_update: Periodic aircraft position updatesalert_triggered: When an alert rule matchessafety_event: TCAS/safety event detectedacars_message: ACARS/VDL2 message received
Connection:
const sse = new EventSource('/api/v1/map/sse');
sse.addEventListener('aircraft_update', (e) => {
const data = JSON.parse(e.data);
console.log(data.aircraft);
});
Query Parameters:
replay_history=true: Receive recent events on connect
The connection will send a heartbeat every 30 seconds to keep alive.