Developer Documentation

OdinMessageReceivedEventPayload

export interface OdinMessageReceivedEventPayload

The payload for the MessageReceived event.

Properties

NameTypeDescription
eventanyThe name of the event that was fired (see keys of OdinEvents for possible values).
messageDataUint8ArrayThe message data received from the peer.
peerIdnumberThe ID of the peer that sent the message.
tagnumberAn internal integer representing the type of the event. This is mainly used internally for testing purposes.