ServerMessage

data class ServerMessage(val type: ServerMessageType)

A message sent from the client to the server as a WebSocket.

Constructors

Link copied to clipboard
constructor(type: ServerMessageType)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun send(host: String = "localhost", port: Int): Job

Asynchronously sends the message to a WebSocket server.