LivePipelineListener

interface LivePipelineListener : StreamListener

An event model interface for LivePipelineHandler.

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.

Link copied to clipboard
open suspend fun onUpdateLikeCount(id: Long, count: Int)

Called when a status like count increments.

Link copied to clipboard
open suspend fun onUpdateReplyCount(id: Long, count: Int)

Called when a status reply count increments.

Link copied to clipboard
open suspend fun onUpdateRetweetCount(id: Long, count: Int)

Called when a status retweet count increments.