- comment
Set event comment.
- data
- id
Set event id.
- name
Set event name (a.k.a type).
- retry
Clients (browsers) will attempt to reconnect every 3 seconds. The retry option
allow you to specify
- send
Send an event and optionally listen for success confirmation or error:
sse.event(data).send().onSuc
- type
Set event media type. Useful for sengin json, xml, etc..