waitForStreamConnection

suspend fun waitForStreamConnection(timeoutSeconds: Int = 30): Boolean

Wait for stream to be connected.

Return

true if connected, false if timeout or error

Parameters

timeoutSeconds

Maximum time to wait for connection