ClientSSESessionWithDeserialization

A client session with deserialization support for handling Server-Sent Events (SSE) from a server.

Report a problem

Constructors

Link copied to clipboard
constructor(call: HttpClientCall, delegate: SSESessionWithDeserialization)

Properties

Link copied to clipboard

The HTTP call associated with the session.

Link copied to clipboard
Link copied to clipboard
open override val deserializer: (TypeInfo, String) -> Any?

Deserializer for transforming the data field of a ServerSentEvent into a desired data object.

Link copied to clipboard
open override val incoming: Flow<TypedServerSentEvent<String>>

An incoming Server-Sent Events (SSE) flow.

Functions

Link copied to clipboard

Deserialize the provided event data into an object of type T using the deserializer function defined in the SSESessionWithDeserialization interface.

Deserialize the provided data into an object of type T using the deserializer function defined in the SSESessionWithDeserialization interface.