connect

abstract suspend fun connect(url: String): WebSocketConnection(source)

Opens a web socket connection and suspends until the connection is OPEN.

Throws

if an error occurs during the connection.