Liking cljdoc? Tell your friends :D

web.MessageChannel

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.
raw docstring

constructorcljs

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`
sourceraw docstring

port-1cljs

(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`
sourceraw docstring

port-2cljs

(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`
sourceraw docstring

set-port-1!cljs

(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`
sourceraw docstring

set-port-2!cljs

(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`
sourceraw docstring

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

× close