receiveEvents

abstract suspend fun receiveEvents(): <Error class: unknown class><Unit>

Establishes a WebSocket connection to start receiving real-time events.

Depending on the server configuration and async notification support, this function may:

  • Trigger the reception of pending events if applicable,

  • Initiate event acknowledgment flows,

  • Start the transition to EventSource.LIVE.

Emits Unit whenever a new event frame arrives.