port property

MessagePort port

The read-only port property of the AudioWorkletNode returns the associated MessagePort. It can be used to communicate between the node and its associated AudioWorkletProcessor.

Note: The port at the other end of the channel is available under the AudioWorkletProcessor.port property of the processor.

Implementation

MessagePort get port;