Package | Description |
---|---|
ratpack.sse |
Modifier and Type | Method and Description |
---|---|
ServerSentEvent.Spec |
ServerSentEvent.Spec.data(String data)
Specify the event data for the server sent event.
|
ServerSentEvent.Spec |
ServerSentEvent.Spec.event(String event)
Specify the event type for the server sent event.
|
ServerSentEvent.Spec |
ServerSentEvent.Spec.id(String id)
Specify the event id for the server sent event.
|
Modifier and Type | Method and Description |
---|---|
static ServerSentEvent |
ServerSentEvent.serverSentEvent(Consumer<? super ServerSentEvent.Spec> consumer)
Returns a new event, built by the given spec consumer.
|