AbstractSseClientService

AbstractSseClientService ⇐ Abstract

Kind: global abstract class
Extends: Abstract
Service:

AbstractSseClientService()

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 /!\

addSourceEventListener(sourceUri, eventName, listener, [options]) ⇒ Promise

Attaches a handler to a source uri event.

Kind: instance method of AbstractSseClientService

ParamType
sourceUristring
eventNamestring
listenerfunction
[options]Object

removeSourceEventListener(sourceUri, eventName, listener, [options]) ⇒ Promise

Removea handler to a source uri event.

Kind: instance method of AbstractSseClientService

ParamType
sourceUristring
eventNamestring
listenerfunction
[options]Object

_newEventSource(uri, [options]) ⇒ Promise.<EventSource>

Implementation for create a new EventSource model .

Kind: instance abstract method of AbstractSseClientService

ParamTypeDescription
uristring
[options]Object

Some options...