SseStreamingEndpointImpl
open class SseStreamingEndpointImpl<TEntity : Any>(referrer: Endpoint, relativeUri: URI, entityType: Class<TEntity>, eventType: String? = null) : AbstractEndpoint, StreamingEndpoint<TEntity>
Endpoint for a stream of TEntitys using Server-Sent Events (SSE).
Sends Accept: text/event-stream. By default, transparently reconnects on connection drops or transient errors, honoring the server-supplied retry: interval and resuming via the Last-Event-ID header.
Parameters
referrer
The endpoint used to navigate to this one.
relativeUri
The URI of this endpoint relative to the referrer's.
entityType
The type of individual elements in the stream.
eventType
If set, only events with this event: type are emitted; others are ignored. null emits all events.
Type Parameters
TEntity
The type of individual elements in the stream.
Constructors
Properties
Link copied to clipboard
Whether to transparently reconnect on connection drops, transient transport errors and 5xx responses.
Link copied to clipboard
The reconnection interval used when the server has not (yet) supplied one via the SSE retry: field.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard