SseStreamingEndpointImpl
constructor(referrer: Endpoint, relativeUri: URI, entityType: Class<TEntity>, eventType: String? = null)
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.
constructor(referrer: Endpoint, relativeUri: String, entityType: Class<TEntity>, eventType: String? = null)
Creates a new SSE streaming endpoint.
Parameters
referrer
The endpoint used to navigate to this one.
relativeUri
The URI of this endpoint relative to the referrer's. Add a ./ prefix here to imply a trailing slash on referrer's URI.
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.