Sse Event Builder
Fluent builder for ServerSentEvent.
Obtain via SseEvent.builder. All fields are optional and default to null.
Example:
var event = SseEvent.builder()
.data("payload")
.event("message")
.build()Content copied to clipboard
Functions
Link copied to clipboard
Builds the ServerSentEvent. If no fields are set, produces an empty SSE keepalive event.
Link copied to clipboard
Sets the comments field.
Link copied to clipboard
Sets the data field.
Link copied to clipboard
Sets the event type field.
Link copied to clipboard
Sets the event ID field.
Link copied to clipboard
Sets the retry interval in milliseconds.