Skip to main content

buildLteRelayBaseSession

sabrobotix-suite


sabrobotix-suite / lib/drone-control-session / buildLteRelayBaseSession

Function: buildLteRelayBaseSession()

buildLteRelayBaseSession(droneId, telemetryEndpoint): DroneControlSessionSnapshot

Defined in: lib/drone-control-session.ts:200

The session a drone control page starts from, over LTE.

The Suite does not hold this link: the browser opens the telemetry WebSocket itself and reduces what arrives with resolveTelemetryRelaySessionUpdate. What the server can say is where the link goes and what kind of link it is, and that is all this builds — a base for the browser to merge live telemetry onto with mergeTelemetryRelaySession.

connecting and not connected: the endpoint is known, and nothing has been heard from the vehicle yet. Claiming connected on the strength of a stored URL is exactly the sort of green light an operator should not be given.

Parameters​

droneId​

string

telemetryEndpoint​

string | null

Returns​

DroneControlSessionSnapshot