connect

open suspend override fun connect(url: String, authorization: String): Boolean

Connect to url. If there is an existing connection it should be automatically disconnected. After a connection is initialized the state should be updated until disconnect is called or the connection is closed by other means (server closed, network issues, new connect call etc.).

Return

true when connected, false when connection failed.

See also