public static interface ServerSentEvent.Spec
ServerSentEvent
instances.Modifier and Type | Method and Description |
---|---|
ServerSentEvent.Spec |
data(String data)
Specify the event data for the server sent event.
|
ServerSentEvent.Spec |
event(String event)
Specify the event type for the server sent event.
|
ServerSentEvent.Spec |
id(String id)
Specify the event id for the server sent event.
|
ServerSentEvent.Spec id(String id)
id
- the event idServerSentEvent.Spec event(String event)
event
- the event typeServerSentEvent.Spec data(String data)
data
- the event data