Liking cljdoc? Tell your friends :D

web.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.EventSource interface closes connection, if one is made, and sets the web.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.EventSource` interface closes
connection, if one is made, and sets the `web.EventSource.readyState`
to 2 (closed).

`eventSource.close();`

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

constructorcljs

Constructor.

The EventSource() constructor returns a newly-created web.EventSource, which represents a remote resource.

url A web.USVString that represents the location of the remote resource serving the events/messages. configuration Optional Provides options to configure the new connection. The possible entries are:

withCredentials, defaulting to false, indicating if CORS should be set to include credentials.

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

Constructor.

The EventSource() constructor returns a newly-created `web.EventSource`, which represents a remote resource.

url
A `web.USVString` that represents the location of the remote resource serving the events/messages.
configuration Optional
Provides options to configure the new connection. The possible entries are:

withCredentials, defaulting to false, indicating if CORS should be set to include credentials.

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

onerrorcljs

(onerror this)

Property.

The onerror property of the web.EventSource interface is an called when an error occurs and the error event is dispatched 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.EventSource` interface is an
called when an error occurs and the error event is dispatched
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.EventSource interface is web.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.EventSource` interface is
`web.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.EventSource interface is an called when an open event is received, that is when the connection 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.EventSource` interface is an
called when an open event is received, that is when the connection
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.

The readyState read-only property of the web.EventSource interface 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.

The readyState read-only property of the `web.EventSource` interface
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.EventSource interface is an called when an error occurs and the error event is dispatched 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.EventSource` interface is an
called when an error occurs and the error event is dispatched
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.EventSource interface is web.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.EventSource` interface is
`web.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.EventSource interface is an called when an open event is received, that is when the connection 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.EventSource` interface is an
called when an open event is received, that is when the connection
just opened.

`eventSource.onopen = function`

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

set-ready-state!cljs

(set-ready-state! this val)

Property.

The readyState read-only property of the web.EventSource interface 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.

The readyState read-only property of the `web.EventSource` interface
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-url!cljs

(set-url! this val)

Property.

The url read-only property of the web.EventSource interface a 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.

The url read-only property of the `web.EventSource` interface
a `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

set-with-credentials!cljs

(set-with-credentials! this val)

Property.

The withCredentials read-only property of the web.EventSource returns a web.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.

The withCredentials read-only property of the `web.EventSource`
returns a `web.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

urlcljs

(url this)

Property.

The url read-only property of the web.EventSource interface a 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.

The url read-only property of the `web.EventSource` interface
a `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.

The withCredentials read-only property of the web.EventSource returns a web.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.

The withCredentials read-only property of the `web.EventSource`
returns a `web.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