StreamEvent

sealed interface StreamEvent(source)

A single event associated with the stream between the client and this server.

A stream is a collection of many events, most which usually are text events sent from the client.

Each event contains additional properties allowing the handler to respond to it.

Inheritors

Types

Link copied to clipboard
class ClientConnected(val stream: Stream) : StreamEvent
Link copied to clipboard
Link copied to clipboard
class Text(val stream: Stream, val text: String) : StreamEvent