StreamApiAction

class StreamApiAction<L : StreamListener, H : StreamHandler<L>>(val client: ApiClient, val request: ApiRequest)

The ApiAction that provides stream-able response.

Constructors

Link copied to clipboard
fun StreamApiAction(client: ApiClient, request: ApiRequest)

Functions

Link copied to clipboard
suspend fun listen(listener: L)

Listens with listener and default handler.

Properties

Link copied to clipboard
val client: ApiClient
Link copied to clipboard
val request: ApiRequest