JavaScript MessagePort : EventTarget
Represents one side of a MessageChannel that can send messages to and receive
messages from the other MessagePort of the MessageChannel. MessagePorts can be transferred to other contexts by
passing it in the
transfer parameter of MessagePort.postMessage() or Window.postMessage().
Instance Events
Fired when postMessage is called on the other port of the MessageChannel. Setting onmessage will automatically call start(). When using addEventListener('message'), you must call
start() to begin receiving message events.
Copyright © PUBLIC Contributors