Liking cljdoc? Tell your friends :D

web.other.MessagePort

The MessagePort interface of the Channel Messaging API represents of the two ports of a web.other.MessageChannel, allowing messages be sent from one port and listening out for them arriving at other.

The MessagePort interface of the Channel Messaging API represents
of the two ports of a `web.other.MessageChannel`, allowing messages
be sent from one port and listening out for them arriving at
other.
raw docstring

closecljs

(close this)

Method.

The close() method of the web.other.MessagePort interface disconnects port, so it is no longer active. This stops the flow of messages that port.

port.close()

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

Method.

The close() method of the `web.other.MessagePort` interface disconnects
port, so it is no longer active. This stops the flow of messages
that port.

`port.close()`

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

onmessagecljs

(onmessage this)

Property.

The onmessage event handler of the web.other.MessagePort interface an web.event.EventListener, called whenever an web.workers.MessageEvent type message is fired on the port — that is, when the port receives message.

channel.onmessage = function() { ... };

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

Property.

The onmessage event handler of the `web.other.MessagePort` interface
an `web.event.EventListener`, called whenever an `web.workers.MessageEvent`
type message is fired on the port — that is, when the port receives
message.

`channel.onmessage = function() { ... };`

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

onmessageerrorcljs

(onmessageerror this)

Property.

The onmessageerror event handler of the web.other.MessagePort is an web.event.EventListener, called whenever an web.workers.MessageEvent type messageerror is fired on the port—that is, when it receives message that cannot be deserialized.

port.onmessageerror = function() { ... };

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

Property.

The onmessageerror event handler of the `web.other.MessagePort`
is an `web.event.EventListener`, called whenever an `web.workers.MessageEvent`
type messageerror is fired on the port—that is, when it receives
message that cannot be deserialized.

`port.onmessageerror = function() { ... };`

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

post-messagecljs

(post-message this message transfer-list)

Method.

The postMessage() method of the web.other.MessagePort interface a message from the port, and optionally, transfers ownership objects to other browsing contexts.

port.postMessage(message, transferList);

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

Method.

The postMessage() method of the `web.other.MessagePort` interface
a message from the port, and optionally, transfers ownership
objects to other browsing contexts.

`port.postMessage(message, transferList);`

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

set-onmessage!cljs

(set-onmessage! this val)

Property.

The onmessage event handler of the web.other.MessagePort interface an web.event.EventListener, called whenever an web.workers.MessageEvent type message is fired on the port — that is, when the port receives message.

channel.onmessage = function() { ... };

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

Property.

The onmessage event handler of the `web.other.MessagePort` interface
an `web.event.EventListener`, called whenever an `web.workers.MessageEvent`
type message is fired on the port — that is, when the port receives
message.

`channel.onmessage = function() { ... };`

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

set-onmessageerror!cljs

(set-onmessageerror! this val)

Property.

The onmessageerror event handler of the web.other.MessagePort is an web.event.EventListener, called whenever an web.workers.MessageEvent type messageerror is fired on the port—that is, when it receives message that cannot be deserialized.

port.onmessageerror = function() { ... };

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

Property.

The onmessageerror event handler of the `web.other.MessagePort`
is an `web.event.EventListener`, called whenever an `web.workers.MessageEvent`
type messageerror is fired on the port—that is, when it receives
message that cannot be deserialized.

`port.onmessageerror = function() { ... };`

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

startcljs

(start this)

Method.

The start() method of the web.other.MessagePort interface starts sending of messages queued on the port. This method is only needed using EventTarget.addEventListener; it is implied when using

port.start()

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

Method.

The start() method of the `web.other.MessagePort` interface starts
sending of messages queued on the port. This method is only needed
using `EventTarget.addEventListener`; it is implied when using

`port.start()`

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

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

× close