Check the timestamps of all vehicle telemetry data to calculate the delay between each telemetry response. If the delay is longer than 3 seconds, display a warning to the UI that a vehicle has disconnected and that the reconnection process has occurred.
Backend
Create a POST endpoint called reconnect that receives a disconnection message (most likely a boolean) from the Frontend. This will update a vehicle's status to reflect that its status is Disconnected.
Task
Frontend
Check the timestamps of all vehicle telemetry data to calculate the delay between each telemetry response. If the delay is longer than 3 seconds, display a warning to the UI that a vehicle has disconnected and that the reconnection process has occurred.
Backend
Create a POST endpoint called
reconnect
that receives a disconnection message (most likely a boolean) from the Frontend. This will update a vehicle's status to reflect that its status isDisconnected
.