ClientConnection

class ClientConnection(val server: String, val debugMode: Boolean = true, timeOut: Long = 30)

Handles the connection with the service.

Constructors

Link copied to clipboard
constructor(server: String, debugMode: Boolean = true, timeOut: Long = 30)

Properties

Link copied to clipboard
val debugMode: Boolean = true
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun get(query: String, debug: Boolean = debugMode, convertCharacters: Boolean = false): <Error class: unknown class>
Link copied to clipboard
inline fun <T> parseReply(reply: String): T?
Link copied to clipboard
fun post(query: String, input: <Error class: unknown class>, debug: Boolean = debugMode): <Error class: unknown class>
fun post(query: String, content: String, debug: Boolean = debugMode, convertCharacters: Boolean = false): <Error class: unknown class>
Link copied to clipboard

Queries for a fresh list of commands to be executed.

Link copied to clipboard
fun register(nodeSpecs: NodeSpecs)

Registers the node. Can be done multiple times.

Link copied to clipboard
fun updateMessage(msg: String): <Error class: unknown class>

Prints a message both to console and the service.

Link copied to clipboard

Posts a status update message.