Title here
Summary here
Abstract
Kind: global abstract class
Extends: Abstract
Service:
Abstract
Server-sent events (SSE) is a technology where a browser/client receives automatic updates from a server via HTTP connection. The Server-Sent Events EventSource API is standardized as part of HTML5[1] by the W3C.
/!\ IMPORTANT: streaming in a one-way direction /!\
Promise
Attaches a handler to a source uri event.
Kind: instance method of AbstractSseClientService
Param | Type |
---|---|
sourceUri | string |
eventName | string |
listener | function |
[options] | Object |
Promise
Removea handler to a source uri event.
Kind: instance method of AbstractSseClientService
Param | Type |
---|---|
sourceUri | string |
eventName | string |
listener | function |
[options] | Object |
Promise.<EventSource>
Implementation for create a new EventSource model .
Kind: instance abstract method of AbstractSseClientService
Param | Type | Description |
---|---|---|
uri | string | |
[options] | Object | Some options... |