Skip to content

TransportDelegate

Defined in: console-sdk/src/transport/types.ts:117

The sink the SDK core hands to a ConsoleTransport factory at construction time. A plain object of functions with a single, known consumer — dependency injection, not pub/sub: there is no add/remove, no subscriber set, no routing (hard rule 4). The transport calls these as hardware events occur; the SDK core adapts them into React state at this lowest boundary.

onAdapterChange(state): void

Defined in: console-sdk/src/transport/types.ts:119

Adapter radio state changed (on/off/unauthorized/…).

BluetoothState

void


onDeviceSeen(seen): void

Defined in: console-sdk/src/transport/types.ts:121

A device matching the scan filter was seen (advertisement).

SeenDevice

void


onFrame(deviceId, bytes): void

Defined in: console-sdk/src/transport/types.ts:125

A notification frame arrived from a connected device.

DeviceId

Uint8Array

void


onLinkDown(deviceId, cause): void

Defined in: console-sdk/src/transport/types.ts:123

An established link dropped (not user-requested).

DeviceId

LinkDownCause

void