Server-sent events is a technology for providing push notifications from a server to a browser client in the form of DOM events.
For more information, check out the SEE demo.
Once connected, you may send events to the browser via sendEvent.
sendEvent is the single method to send events to clients.
message: the event itself
event: optional event name
retry: set the retry timeout in ms. default 3 secs.
Gets called when a new client connects.
Gets called when an existing client disconnects.