Skip to content

EventName

const EventName: object;

Defined in: src/ports/events.ts:82

Named constants for every key in MeshCoreEventMap, so consumers may subscribe by readable name instead of a bare string: session.events.on(EventName.RAW_PACKET, …). Values equal the event keys, so the constant and the raw string are interchangeable and both infer the typed listener. satisfies validates each value; the guard below enforces coverage.

readonly AUTO_ADD_CONFIG: "autoAddConfig" = 'autoAddConfig';
readonly CHANNEL_PRESENCE: "channelPresence" = 'channelPresence';
readonly CHANNELS: "channels" = 'channels';
readonly CONTACT_DISCOVERED: "contactDiscovered" = 'contactDiscovered';
readonly CONTACT_EVICTED: "contactEvicted" = 'contactEvicted';
readonly CONTACT_OBSERVED: "contactObserved" = 'contactObserved';
readonly CONTACTS: "contacts" = 'contacts';
readonly CONTACTS_FULL: "contactsFull" = 'contactsFull';
readonly DEVICE_CAPABILITIES: "deviceCapabilities" = 'deviceCapabilities';
readonly DEVICE_IDENTITY: "deviceIdentity" = 'deviceIdentity';
readonly DEVICE_INFO: "deviceInfo" = 'deviceInfo';
readonly DISCOVERED: "discovered" = 'discovered';
readonly GPS_CONFIG: "gpsConfig" = 'gpsConfig';
readonly MESSAGE_PATH_HEARD: "messagePathHeard" = 'messagePathHeard';
readonly MESSAGE_STATE: "messageState" = 'messageState';
readonly MESSAGE_UPSERTED: "messageUpserted" = 'messageUpserted';
readonly MESSAGES: "messages" = 'messages';
readonly OWNER: "owner" = 'owner';
readonly PATH_LEARNED: "pathLearned" = 'pathLearned';
readonly RADIO_SETTINGS: "radioSettings" = 'radioSettings';
readonly RAW_PACKET: "rawPacket" = 'rawPacket';
readonly REPEATER_STATUS: "repeaterStatus" = 'repeaterStatus';
readonly REPEATER_TELEMETRY: "repeaterTelemetry" = 'repeaterTelemetry';
readonly SYNC_PROGRESS: "syncProgress" = 'syncProgress';
readonly TELEMETRY_POLICY: "telemetryPolicy" = 'telemetryPolicy';
readonly TRANSPORT_STATE: "transportState" = 'transportState';