meshcore.js
Events

Events you can listen to

Every client event, when it fires, and its arguments.

EventWhenArguments
readylogin() finished the handshake
disconnectThe connection to the radio was losterror?: Error
reconnectingA reconnection attempt is about to runattempt: number, delayMs: number
errorA handler, event, job or plugin failederror: Error, source: ErrorSource
messageCreateA DM or channel message was receivedmessage: Message
messageDeliveredA DM was acknowledged by the recipientsent: SentMessage
messageFailedA DM could not be deliveredsent: SentMessage, error: DeliveryFailedError
advertAn advert was heard from a nodeadvert: Advert
contactAddA new contact appeared in the radio's tablecontact: Contact
contactUpdateAn existing contact changedoldContact: Contact, newContact: Contact
contactRemoveA contact was removedcontact: Contact
contactsFullThe radio's contact table has no free slot
channelUpdateA channel slot changedoldChannel: Channel | null, newChannel: Channel | null
commandRunA command handler ranctx: CommandContext
commandErrorA command handler threwerror: Error, ctx: CommandContext
commandDeniedA command was refused before its handlerctx: DeniedContext, reason: DenyReason
pluginLoadA plugin finished loadingplugin: Plugin
pluginUnloadA plugin was unloadedplugin: Plugin
rawEvery decoded frame from the radio, for debuggingframe: DecodedFrame

client.on() and an EventBuilder receive the same arguments. The builder's handler gets the client first.

Reference

On this page