Developer Documentation

OdinConnectionStateChangedEvent

The OdinConnectionStateChangedEvent event is emitted on OdinClient and OdinRoom instances when the internal connection state of the underlying main/room stream is updated. You can use the event to determine when your connection is closed unexpectedly (e.g. timeout or server shutdown).

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

Event Scopes

  • IOdinClientEvents
  • IOdinRoomEvents