send

fun send(host: String = "localhost", port: Int): Job

Asynchronously sends the message to a WebSocket server.

Parameters

host

host of the server

port

port of the server