Liking cljdoc? Tell your friends :D

web.MessagePort

The MessagePort interface of the Channel Messaging API represents of the two ports of a web.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.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.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.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.MessagePort interface an web.EventListener, called whenever an web.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.MessagePort` interface
an `web.EventListener`, called whenever an `web.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.MessagePort interface an web.EventListener, called whenever an web.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.MessagePort` interface
an `web.EventListener`, called whenever an `web.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.MessagePort interface sends message from the port, and optionally, transfers ownership of 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.MessagePort` interface sends
message from the port, and optionally, transfers ownership of
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.MessagePort interface an web.EventListener, called whenever an web.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.MessagePort` interface
an `web.EventListener`, called whenever an `web.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.MessagePort interface an web.EventListener, called whenever an web.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.MessagePort` interface
an `web.EventListener`, called whenever an `web.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.MessagePort interface starts sending of messages queued on the port. This method is only needed using web.EventTarget.addEventListener; it is implied when web.MessageChannel.onmessage.

port.start()

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

Method.

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

`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