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.
Methods
Section titled “Methods”onAdapterChange()
Section titled “onAdapterChange()”onAdapterChange(
state):void
Defined in: console-sdk/src/transport/types.ts:119
Adapter radio state changed (on/off/unauthorized/…).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onDeviceSeen()
Section titled “onDeviceSeen()”onDeviceSeen(
seen):void
Defined in: console-sdk/src/transport/types.ts:121
A device matching the scan filter was seen (advertisement).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onFrame()
Section titled “onFrame()”onFrame(
deviceId,bytes):void
Defined in: console-sdk/src/transport/types.ts:125
A notification frame arrived from a connected device.
Parameters
Section titled “Parameters”deviceId
Section titled “deviceId”Uint8Array
Returns
Section titled “Returns”void
onLinkDown()
Section titled “onLinkDown()”onLinkDown(
deviceId,cause):void
Defined in: console-sdk/src/transport/types.ts:123
An established link dropped (not user-requested).
Parameters
Section titled “Parameters”deviceId
Section titled “deviceId”Returns
Section titled “Returns”void