awaitWebSocket

fun awaitWebSocket(durationMillis: Long): Unit

Wait for websocket session completion

fun awaitWebSocket(duration: Duration): Unit

Deprecated: Binary compatibility.