An empty ServerSentEvent that can be used as a heartbeat.
An empty ServerSentEvent that can be used as a heartbeat. Filtered out by clients.
Creates a ServerSentEvent with event type, id and retry interval.
Creates a ServerSentEvent with event type, id and retry interval.
data which may span multiple lines
event type, must not contain \n or \r
event id, must not contain \n or \r
the reconnection time in milliseconds.
Creates a ServerSentEvent with event type and id.
Creates a ServerSentEvent with event type and id.
data which may span multiple lines
event type, must not contain \n or \r
event id, must not contain \n or \r
Creates a ServerSentEvent with event type.
Creates a ServerSentEvent with event type.
data which may span multiple lines
event type, must not contain \n or \r
Java API.
Java API.
Creates a ServerSentEvent with event type and id.
data which may span multiple lines
event type, must not contain \n or \r
event id, must not contain \n or \r
Java API.
Java API.
Creates a ServerSentEvent with event type.
data which may span multiple lines
event type, must not contain \n or \r
Java API.
Java API.
Creates a ServerSentEvent without event type.
data which may span multiple lines
An eventId which resets the last event ID to the empty string, meaning no Last-Event-ID header will be sent
in the event of a reconnection being attempted.
A ServerSentEvent with the data set to the empty string that might be used as a heartbeat.
A ServerSentEvent with the data set to the empty string that might be used as a heartbeat. Attention: not filtered out by clients!
(Since version 2.8.0) Use Heartbeat instead!