EventMap
Defined in: src/ports/events.ts:37
Strongly-typed map of every event the library emits. The session owns a
MeshCoreEvents instance and exposes it as session.events.
Note: there is intentionally NO generic error event here — the donor app’s
errorMessage channel was dropped during extraction. Specific recoverable
conditions are surfaced as their own dedicated events instead (e.g.
MeshCoreEventMap.contactsFull), which adapters may map onto their own
error/toast channel.
Properties
Section titled “Properties”autoAddConfig
Section titled “autoAddConfig”autoAddConfig: (cfg) => void;Defined in: src/ports/events.ts:70
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
cfg | AutoAddConfig |
Returns
Section titled “Returns”void
channelPresence
Section titled “channelPresence”channelPresence: (keys) => void;Defined in: src/ports/events.ts:41
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
keys | string[] |
Returns
Section titled “Returns”void
channels
Section titled “channels”channels: (channels) => void;Defined in: src/ports/events.ts:40
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
channels | Channel[] |
Returns
Section titled “Returns”void
contactDiscovered
Section titled “contactDiscovered”contactDiscovered: (c) => void;Defined in: src/ports/events.ts:51
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
c | { key: string; kind: ContactKind; name: string; } |
c.key | string |
c.kind | ContactKind |
c.name | string |
Returns
Section titled “Returns”void
contactEvicted
Section titled “contactEvicted”contactEvicted: (name) => void;Defined in: src/ports/events.ts:45
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | string |
Returns
Section titled “Returns”void
contactObserved
Section titled “contactObserved”contactObserved: (record, source) => void;Defined in: src/ports/events.ts:54
Fires whenever a contact record is ingested (sync or advert), exposing the raw decoded record so consumers can persist it themselves.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
record | ContactRecord |
source | ContactSource |
Returns
Section titled “Returns”void
contacts
Section titled “contacts”contacts: (contacts) => void;Defined in: src/ports/events.ts:43
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
contacts | Contact[] |
Returns
Section titled “Returns”void
contactsFull
Section titled “contactsFull”contactsFull: () => void;Defined in: src/ports/events.ts:50
The radio’s contact store is full — a new advert could not be auto-added (overwrite-oldest off, or all slots favourited). Informational/recoverable: the user must remove or favourite contacts to make room. Adapters may bridge this onto their own error/toast channel.
Returns
Section titled “Returns”void
deviceCapabilities
Section titled “deviceCapabilities”deviceCapabilities: (caps) => void;Defined in: src/ports/events.ts:74
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
caps | DeviceCapabilities |
Returns
Section titled “Returns”void
deviceIdentity
Section titled “deviceIdentity”deviceIdentity: (identity) => void;Defined in: src/ports/events.ts:69
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
identity | DeviceIdentity |
Returns
Section titled “Returns”void
deviceInfo
Section titled “deviceInfo”deviceInfo: (info) => void;Defined in: src/ports/events.ts:73
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
info | DeviceInfo |
Returns
Section titled “Returns”void
discovered
Section titled “discovered”discovered: (rows) => void;Defined in: src/ports/events.ts:44
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
rows | DiscoveredContact[] |
Returns
Section titled “Returns”void
gpsConfig
Section titled “gpsConfig”gpsConfig: (cfg) => void;Defined in: src/ports/events.ts:72
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
cfg | GpsConfig |
Returns
Section titled “Returns”void
messagePathHeard
Section titled “messagePathHeard”messagePathHeard: (p) => void;Defined in: src/ports/events.ts:63
A heard repeater relay of one of your outgoing channel sends, correlated back to the message id you passed to registerChannelSend. Carries only the message id and the observed path — the library does not track message state for this; the consumer owns it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
p | { id: string; path: MessagePath; } |
p.id | string |
p.path | MessagePath |
Returns
Section titled “Returns”void
messages
Section titled “messages”messages: (key, messages) => void;Defined in: src/ports/events.ts:55
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
key | string |
messages | Message[] |
Returns
Section titled “Returns”void
messageState
Section titled “messageState”messageState: (id, state) => void;Defined in: src/ports/events.ts:58
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
id | string |
state | MessageState |
Returns
Section titled “Returns”void
messageUpserted
Section titled “messageUpserted”messageUpserted: (message) => void;Defined in: src/ports/events.ts:57
A single inserted/updated message — a delta companion to messages.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
message | Message |
Returns
Section titled “Returns”void
owner: (owner) => void;Defined in: src/ports/events.ts:64
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
owner | | Owner | null |
Returns
Section titled “Returns”void
pathLearned
Section titled “pathLearned”pathLearned: (event) => void;Defined in: src/ports/events.ts:68
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | PathLearnedEvent |
Returns
Section titled “Returns”void
radioSettings
Section titled “radioSettings”radioSettings: (settings) => void;Defined in: src/ports/events.ts:65
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
settings | RadioSettings |
Returns
Section titled “Returns”void
rawPacket
Section titled “rawPacket”rawPacket: (pkt) => void;Defined in: src/ports/events.ts:39
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
pkt | { hex: string; rssi: number; snr: number; source: MeshSource; } |
pkt.hex | string |
pkt.rssi | number |
pkt.snr | number |
pkt.source | MeshSource |
Returns
Section titled “Returns”void
repeaterStatus
Section titled “repeaterStatus”repeaterStatus: (snap) => void;Defined in: src/ports/events.ts:66
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
snap | RepeaterStatusSnapshot |
Returns
Section titled “Returns”void
repeaterTelemetry
Section titled “repeaterTelemetry”repeaterTelemetry: (snap) => void;Defined in: src/ports/events.ts:67
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
snap | RepeaterTelemetrySnapshot |
Returns
Section titled “Returns”void
syncProgress
Section titled “syncProgress”syncProgress: (progress) => void;Defined in: src/ports/events.ts:42
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
progress | SyncProgress |
Returns
Section titled “Returns”void
telemetryPolicy
Section titled “telemetryPolicy”telemetryPolicy: (policy) => void;Defined in: src/ports/events.ts:71
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
policy | TelemetryPolicy |
Returns
Section titled “Returns”void
transportState
Section titled “transportState”transportState: (s) => void;Defined in: src/ports/events.ts:38
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
s | TransportState |
Returns
Section titled “Returns”void