tock / ai.tock.bot.api.websocket / start

start

fun start(botDefinition: ClientBotDefinition, url: String): Unit (source)

Starts a client.

Parameters

botDefinition - the ClientBotDefinition

url - the target server url

fun start(botDefinition: ClientBotDefinition, serverPort: Int = intProperty("tock_websocket_port", 8080), serverHost: String = property("tock_websocket_host", "localhost"), ssl: Boolean = booleanProperty("tock_websocket_ssl", false)): Unit (source)

Starts a client.

Parameters

botDefinition - the ClientBotDefinition

serverPort - the server port

serverHost - the server host

ssl - is it ssl ?