Skip to main content

Interface: OdinMessageReceivedEventPayload

The payload for the MessageReceived event.

Extends

Properties

event

event: keyof OdinEvents

The name of the event that was fired (see keys of OdinEvents for possible values).

Inherited from

OdinEventPayload.event

Defined in

odin.room.d.ts:89


messageData

messageData: Uint8Array

The message data received from the peer.

Defined in

odin.room.d.ts:224


peerId

peerId: number

The ID of the peer that sent the message.

Defined in

odin.room.d.ts:219


tag

tag: number

An internal integer representing the type of the event. This is mainly used internally for testing purposes.

Inherited from

OdinEventPayload.tag

Defined in

odin.room.d.ts:94