awaitEvent

inline suspend fun <T : MsmpEvent> awaitEvent(): T?

Awaits the first event of type T.

If the eventFlow completes normally (e.g., the client stateFlow is MsmpState.Closed or the server stops) before an event is received, this method returns null.