connect
suspend fun connect(localDeviceName: String, authValidator: suspend (String) -> Boolean = { true }): Result<Connection>
Tries to connect to the remote endpoint and returns a Connection if result is successful
Parameters
local Device Name
name of the caller that tries to connect
auth Validator
optional auth validator. If not provided, all connections are accepted, otherwise the caller will be able to choose whether to accept or reject the connection.