Returns an EventSource instance as an endpoint to receive events for the given event name.
Subscription state and event handling can be handled via setting onmessage, onopen, and onerror callbacks on the EventSource instance.
Parameters
eventName: string
name of the event to subscribe to (e.g. jobs, messages, printers)
Returns an EventSource instance as an endpoint to receive events for the given event name. Subscription state and event handling can be handled via setting
onmessage
,onopen
, andonerror
callbacks on the EventSource instance.