Developer Documentation

OdinMessageReceivedEvent

The OdinMessageReceivedEvent event is emitted on OdinRoom and OdinPeer instances when receiving a message from another peer in the room. Note that this event only provides the ID of the peer as senderId. This is because the invoking peer might not be in proximity due to server-side culling.

Events are inheriting from IOdinEvent and provide an object described by IOdinMessageReceivedEventPayload in the payload property of the event.

Event Scopes

  • IOdinRoomEvents
  • IOdinPeerEvents