Protocol

object Protocol

Functions

Link copied to clipboard
fun decode(line: String): LanMessage?

Returns null for malformed or unknown lines instead of throwing — peers are untrusted input.

Link copied to clipboard
fun encode(message: LanMessage): String