The MessageChannel interface of the Channel Messaging API allows
to create a new message channel and send data through it via
two web.MessagePort
properties.
The MessageChannel interface of the Channel Messaging API allows to create a new message channel and send data through it via two `web.MessagePort` properties.
Constructor.
The MessageChannel() constructor of the web.MessageChannel
interface returns a new web.MessageChannel
object with two new web.MessagePort
objects.
See also: https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/MessageChannel
Constructor. The MessageChannel() constructor of the `web.MessageChannel` interface returns a new `web.MessageChannel` object with two new `web.MessagePort` objects. See also: `https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/MessageChannel`
(port-1 this)
Property.
The port1 read-only property of the web.MessageChannel
interface
the first port of the message channel — the port attached to
context that originated the channel.
channel.port1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port1
Property. The port1 read-only property of the `web.MessageChannel` interface the first port of the message channel — the port attached to context that originated the channel. `channel.port1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port1`
(port-2 this)
Property.
The port2 read-only property of the web.MessageChannel
interface
the second port of the message channel — the port attached to
context at the other end of the channel, which the message is
sent to.
channel.port2;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port2
Property. The port2 read-only property of the `web.MessageChannel` interface the second port of the message channel — the port attached to context at the other end of the channel, which the message is sent to. `channel.port2;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port2`
(set-port-1! this val)
Property.
The port1 read-only property of the web.MessageChannel
interface
the first port of the message channel — the port attached to
context that originated the channel.
channel.port1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port1
Property. The port1 read-only property of the `web.MessageChannel` interface the first port of the message channel — the port attached to context that originated the channel. `channel.port1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port1`
(set-port-2! this val)
Property.
The port2 read-only property of the web.MessageChannel
interface
the second port of the message channel — the port attached to
context at the other end of the channel, which the message is
sent to.
channel.port2;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port2
Property. The port2 read-only property of the `web.MessageChannel` interface the second port of the message channel — the port attached to context at the other end of the channel, which the message is sent to. `channel.port2;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port2`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close