Creates a ServerSentEvent.
Creates a ServerSentEvent.
data, may span multiple lines
reconnection delay in milliseconds
Creates a ServerSentEvent.
Creates a ServerSentEvent.
data, may span multiple lines
type, must not contain \n or \r
id, must not contain \n or \r
Creates a ServerSentEvent.
Creates a ServerSentEvent.
data, may span multiple lines
type, must not contain \n or \r
A ServerSentEvent with empty data which can be used as a heartbeat.