TransportDisconnectReason
Machine-readable transport disconnect causes that need service/UI-specific handling.
Entries
The radio gave its one WebSocket client slot to another client, WebSocket close code 4001.
A WebSocket could not be opened: the host refused, timed out or did not resolve.
A browser's WebSocket to port 4403 failed: that is firmware's raw TCP API, which never answers a WebSocket.
A browser could not open a wss:// WebSocket. The page can't see why; the radio's untrusted self-signed certificate is the usual cause.
A browser could not open a ws:// WebSocket from a secure page to another host, which the browser may block as mixed content or hold behind its local network access permission.
The server answered a WebSocket upgrade with something other than 101, such as a 403 or a 401.
The WebSocket path answered the upgrade with a 404: the radio's firmware predates the WebSocket phone API.
The wss:// TLS handshake failed, most often on the radio's self-signed certificate.
The radio closed the WebSocket with 1009: a message over its 512-byte limit.
The WebSocket kept dropping right after opening without a close frame, the sign of two clients taking turns.
The SDK failed the session with a handshake timeout or a protocol error, so the radio waits for the user to connect.
The radio's firmware is older than the SDK supports, so the session was refused until the radio is updated.
The user declined Android's USB permission prompt, so the radio stays unreachable until it is re-attached.
Linux refused to open the serial port's device node for this user, who lacks the group that owns it.
Companion properties
Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.
Companion functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.