TransportDisconnectReason

Machine-readable transport disconnect causes that need service/UI-specific handling.

Entries

Link copied to clipboard

The radio gave its one WebSocket client slot to another client, WebSocket close code 4001.

Link copied to clipboard

A WebSocket could not be opened: the host refused, timed out or did not resolve.

Link copied to clipboard

A browser's WebSocket to port 4403 failed: that is firmware's raw TCP API, which never answers a WebSocket.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

The server answered a WebSocket upgrade with something other than 101, such as a 403 or a 401.

Link copied to clipboard

The WebSocket path answered the upgrade with a 404: the radio's firmware predates the WebSocket phone API.

Link copied to clipboard

The wss:// TLS handshake failed, most often on the radio's self-signed certificate.

Link copied to clipboard

The radio closed the WebSocket with 1009: a message over its 512-byte limit.

Link copied to clipboard

The WebSocket kept dropping right after opening without a close frame, the sign of two clients taking turns.

Link copied to clipboard

The SDK failed the session with a handshake timeout or a protocol error, so the radio waits for the user to connect.

Link copied to clipboard

The radio's firmware is older than the SDK supports, so the session was refused until the radio is updated.

Link copied to clipboard

The user declined Android's USB permission prompt, so the radio stays unreachable until it is re-attached.

Link copied to clipboard

Linux refused to open the serial port's device node for this user, who lacks the group that owns it.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int