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.
An "empty" ServerSentEvent that can be used as a heartbeat.