AudioWorkletProcessor: port property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
The read-onlyport property of theAudioWorkletProcessor interface returns the associatedMessagePort. It can be used to communicate between the processor and theAudioWorkletNode to which it belongs.
Note:The port at the other end of the channel isavailable under theport property of the node.
In this article
Value
TheMessagePort object that is connecting theAudioWorkletProcessor and the associatedAudioWorkletNode.
Examples
SeeAudioWorkletNode.port for example code.
Specifications
| Specification |
|---|
| Web Audio API> # dom-audioworkletprocessor-port> |