TweetstormListener

interface TweetstormListener : StreamListener

An event model interface for TweetstormHandler.

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 onDelete(delete: Stream.Delete)

Called when a delete event is received.

Link copied to clipboard
open suspend fun onDirectMessage(message: DirectMessage)

Called when a direct message is received.

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

Called when streaming is disconnected.

Link copied to clipboard
open suspend fun onFriends(friends: Stream.Friends)

Called when a friends event is received.

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 onStatus(status: Status)

Called when a status is received.

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.