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