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