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.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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close