v160 · multimedia · web audio

Global-scope handshake

The smallest complete use of the shared channel, mirroring the WPT contract: ctx.audioWorklet.port is a MessagePort before any module loads; the module can port.postMessage() while it is still being evaluated; text you send reaches the audio thread’s global scope and comes back; and after close() nothing more flows.

Probing this browser…

1 · Open the channel

Context type

2 · Talk to the global scope

Not started.

    the module that runs in AudioWorkletGlobalScope

    This exact text is turned into a Blob URL and passed to addModule():

    references