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