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.
(close this)
Method.
The close() method of the web.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.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`
(constructor & args)
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`
(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`
(onmessage this)
Property.
The onmessage property of the web.EventSource
interface is
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 `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`
(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`
(ready-state this)
Property.
[Read Only]
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. [Read Only] 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`
(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`
(set-onmessage! this val)
Property.
The onmessage property of the web.EventSource
interface is
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 `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`
(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`
(url this)
Property.
[Read Only]
The url read-only property of the web.EventSource
interface
a web.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.EventSource` interface a `web.DOMString` representing the URL of the source. `var myUrl = eventSource.url;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventSource/url`
(with-credentials this)
Property.
[Read Only]
The withCredentials read-only property of the web.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.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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close