Creates event source from url (and config) and returns an observable with parsed event source data. Opens the event source once subscribed. Closes the event source, once unsubscribed.
Use eventSource$ from rx-event-source package instead.
eventSource$
rx-event-source
const sse$ = eventSource$('https://example.com/sse', { withCredentials: true,});sse$.subscribe((data) => { console.log(data);});
Optional
Generated using TypeDoc
Creates event source from url (and config) and returns an observable with parsed event source data. Opens the event source once subscribed. Closes the event source, once unsubscribed.
Deprecated
Use
eventSource$
fromrx-event-source
package instead.Example