addServer

js
suspend fun addServer(server: <ERROR CLASS>): String

Adds a new server to connect to and returns the new server's UUID.

Throws

RequestFailedException

if signald sends an error response or the incoming message is invalid

SignaldException

if the request to the socket fails

synchronousClient
fun addServer(server: Server): String

Adds a new server to connect to and returns the new server's UUID.

Throws

org.inthewaves.kotlinsignald.clientprotocol.RequestFailedException

if signald sends an error response or the incoming message is invalid

org.inthewaves.kotlinsignald.clientprotocol.SignaldException

if the request to the socket fails