StreamListener

interface StreamListener

A common event model interface for StreamHandler.

Functions

Link copied to clipboard
open suspend fun onAnyJson(json: JsonObject)

Called when any payloads are received.

Link copied to clipboard
open suspend fun onConnect()

Called when streaming is connected.

Link copied to clipboard
open suspend fun onDisconnect(cause: Throwable?)

Called when streaming is disconnected.

Link copied to clipboard
open suspend fun onHeartbeat()

Called when streaming sends heartbeat.

Link copied to clipboard
open suspend fun onLength(length: Int)

Called when streaming sends length.

Link copied to clipboard
open suspend fun onRawData(data: String)

Called when any data are connected.

Link copied to clipboard
open suspend fun onUnhandledJson(json: JsonObject)

Called when unhandled payloads are detected.

Link copied to clipboard
open suspend fun onUnknownData(data: String)

Called when unhandled data are detected.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard