Liking cljdoc? Tell your friends :D

web.other.EventSource

The EventSource interface is web content's interface to server-sent An EventSource instance opens a persistent connection to an HTTP which sends events in text/event-stream format.

The EventSource interface is web content's interface to server-sent
An EventSource instance opens a persistent connection to an HTTP
which sends events in text/event-stream format.
raw docstring

closecljs

(close this)

Method.

The close() method of the web.other.EventSource interface closes connection, if one is made, and sets the EventSource.readyState to 2 (closed).

eventSource.close();

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/close

Method.

The close() method of the `web.other.EventSource` interface closes
connection, if one is made, and sets the `EventSource.readyState`
to 2 (closed).

`eventSource.close();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/close`
sourceraw docstring

onerrorcljs

(onerror this)

Property.

The onerror property of the web.other.EventSource interface an EventHandler called when an error occurs and the error event dispatched on an EventSource object.

eventSource.onerror = function

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onerror

Property.

The onerror property of the `web.other.EventSource` interface
an `EventHandler` called when an error occurs and the error event
dispatched on an EventSource object.

`eventSource.onerror = function`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onerror`
sourceraw docstring

onmessagecljs

(onmessage this)

Property.

The onmessage property of the web.other.EventSource interface an EventHandler called when a message event is received, that when a message is coming from the source.

eventSource.onmessage = function

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onmessage

Property.

The onmessage property of the `web.other.EventSource` interface
an `EventHandler` called when a message event is received, that
when a message is coming from the source.

`eventSource.onmessage = function`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onmessage`
sourceraw docstring

onopencljs

(onopen this)

Property.

The onopen property of the web.other.EventSource interface an EventHandler called when an open event is received, that when the connection was just opened.

eventSource.onopen = function

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onopen

Property.

The onopen property of the `web.other.EventSource` interface
an `EventHandler` called when an open event is received, that
when the connection was just opened.

`eventSource.onopen = function`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onopen`
sourceraw docstring

ready-statecljs

(ready-state this)

Property.

[Read Only]

The readyState read-only property of the web.other.EventSource returns a number representing the state of the connection.

var myReadyState = eventSource.readyState;

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/readyState

Property.

[Read Only]

The readyState read-only property of the `web.other.EventSource`
returns a number representing the state of the connection.

`var myReadyState = eventSource.readyState;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/readyState`
sourceraw docstring

set-onerror!cljs

(set-onerror! this val)

Property.

The onerror property of the web.other.EventSource interface an EventHandler called when an error occurs and the error event dispatched on an EventSource object.

eventSource.onerror = function

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onerror

Property.

The onerror property of the `web.other.EventSource` interface
an `EventHandler` called when an error occurs and the error event
dispatched on an EventSource object.

`eventSource.onerror = function`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onerror`
sourceraw docstring

set-onmessage!cljs

(set-onmessage! this val)

Property.

The onmessage property of the web.other.EventSource interface an EventHandler called when a message event is received, that when a message is coming from the source.

eventSource.onmessage = function

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onmessage

Property.

The onmessage property of the `web.other.EventSource` interface
an `EventHandler` called when a message event is received, that
when a message is coming from the source.

`eventSource.onmessage = function`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onmessage`
sourceraw docstring

set-onopen!cljs

(set-onopen! this val)

Property.

The onopen property of the web.other.EventSource interface an EventHandler called when an open event is received, that when the connection was just opened.

eventSource.onopen = function

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onopen

Property.

The onopen property of the `web.other.EventSource` interface
an `EventHandler` called when an open event is received, that
when the connection was just opened.

`eventSource.onopen = function`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onopen`
sourceraw docstring

urlcljs

(url this)

Property.

[Read Only]

The url read-only property of the web.other.EventSource interface a web.dom.DOMString representing the URL of the source.

var myUrl = eventSource.url;

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/url

Property.

[Read Only]

The url read-only property of the `web.other.EventSource` interface
a `web.dom.DOMString` representing the URL of the source.

`var myUrl = eventSource.url;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/url`
sourceraw docstring

with-credentialscljs

(with-credentials this)

Property.

[Read Only]

The withCredentials read-only property of the web.other.EventSource returns a js.Boolean indicating whether the EventSource object instantiated with CORS credentials set.

var myWithCredentials = eventSource.withCredentials;

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/withCredentials

Property.

[Read Only]

The withCredentials read-only property of the `web.other.EventSource`
returns a `js.Boolean` indicating whether the EventSource object
instantiated with CORS credentials set.

`var myWithCredentials = eventSource.withCredentials;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/withCredentials`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close