← Chrome 160 reference · All APIs

v160 · web audio · covered on mdn

Shared MessagePort for AudioWorklet

Chrome 160 exposes a shared, read-only MessagePort as AudioWorklet.prototype.port on the main thread and AudioWorkletGlobalScope.prototype.port inside the audio rendering thread. Applications can exchange global configuration, WebAssembly modules, or control messages directly with the worklet global scope without creating a dummy bootstrap AudioWorkletNode and AudioWorkletProcessor.

Limited availability — not Baseline

  • Chrome · 160 (desktop, Android, WebView)
  • Edge · Chromium-based (mirrors Chrome)
  • Firefox · 138 (shipped)
  • Safari · No (WebKit standards-positions#739)

The parent audio-worklet web-feature is Baseline Widely available (since 2023-10-26 per webstatus.dev), but the shared port properties are Limited availability (unsupported in Safari). Note that BCD api/AudioWorklet.json currently lists Chrome as preview while BCD api/AudioWorkletGlobalScope.json still reads false (checked 2026-11-24).

this feature is documented on MDN

MDN: AudioWorklet: port property

Both MDN pages are live and substantive (verified HTTP 200 on 2026-11-24): each includes Value, Examples, Specifications, and BCD-backed Browser compatibility tables. ChromeStatus itself links AudioWorkletGlobalScope/port as its primary documentation URL.

Why gendn doesn’t duplicate MDN: when MDN already publishes dedicated references for every interface member in a feature, gendn points directly to MDN and adds the Chrome 160 shipping metadata, Blink runtime flag, lifecycle/GC caveats, BCD lag disclosure, and live showcase embed.

Chrome 160 details, WebIDL & lifecycle notes

In Web Audio API 1.1 (added by WebAudio/web-audio-api#2507 for issue #2456), both ends expose an entangled MessagePort gated in Chromium behind [RuntimeEnabled=AudioWorkletSharedPort] (now status: "stable"):

// Main thread (Window, SecureContext):
// context.audioWorklet.port exists BEFORE addModule() resolves.
const context = new AudioContext();
if ("port" in context.audioWorklet) {
  context.audioWorklet.port.addEventListener("message", (event) => {
    console.log("From AudioWorkletGlobalScope:", event.data);
  });
  context.audioWorklet.port.start(); // required when using addEventListener()
  await context.audioWorklet.addModule("worklet.js");
  context.audioWorklet.port.postMessage({ type: "init", gain: 0.5 });
}

// Inside worklet.js (AudioWorkletGlobalScope):
// `port` is already available during top-level module evaluation!
port.postMessage({ type: "module-evaluation" });
port.onmessage = (event) => {
  if (event.data?.type === "init") {
    // Store global state shared across processors without a dummy processor.
  }
};
Source: Web Audio API 1.1 §1.32.1 AudioWorklet.port; §1.32.3.1 AudioWorkletGlobalScope.port; WPT audioworklet-messageport.https.html; ChromeStatus 5079784523694080.

live example

Live example from the Chrome Platform Showcase (route HEAD-checked 200, 2026-11-24): inspects AudioWorklet.port before and after addModule(). Sibling concept demos (all HEAD 200): global scope handshake, bootstrap migration, shared tuning bus, and worker direct line.Source: chrome-platform-showcase

Browser compatibility

Support for AudioWorklet.port and AudioWorkletGlobalScope.port from BCD api/AudioWorklet.json and api/AudioWorkletGlobalScope.json alongside ChromeStatus 5079784523694080 (checked 2026-11-24).
BrowserAudioWorklet.portAudioWorkletGlobalScope.portNotes
Chrome (desktop, Android, WebView)160160Enabled by default in Chrome 160 (milestone=160 listing); BCD currently lags ("preview" on AudioWorklet.port, false on AudioWorkletGlobalScope.port)
Edge160 (mirror)160 (mirror)Chromium-based; BCD mirrors Chrome
Firefox138138Shipped in Firefox 138 per BCD and ChromeStatus
SafariNoNofalse in BCD; WebKit standards-positions#739 (“No signal”)
Source: BCD api/AudioWorklet.json; BCD api/AudioWorkletGlobalScope.json; ChromeStatus API record (5079784523694080).

quick reference

Shipped inChrome 160 (desktop, Android, Android WebView; iOS null) — filed under “Enabled by default” in the milestone=160 listing
Runtime flagAudioWorkletSharedPort, status stable in Blink’s runtime_enabled_features.json5 (verified 2026-11-24; previously behind chrome://flags/#enable-experimental-web-platform-features)
IDL sourceChromium audio_worklet.idl ([Exposed=Window, SecureContext]) · Chromium audio_worklet_global_scope.idl ([Exposed=AudioWorklet])
SpecificationWeb Audio API 1.1 — AudioWorklet.port · AudioWorkletGlobalScope.port · W3C TR Web Audio 1.1
Spec discussionWebAudio/web-audio-api#2456 · WebAudio/web-audio-api#2507 · emscripten-core/emscripten#25354
Blink-dev intentsIntent to Prototype · Intent to Ship
Tracking bugissues.chromium.org/446920095
Web platform testswebaudio/the-audio-api/the-audioworklet-interface/audioworklet-messageport.https.html
ChromeStatus5079784523694080 — Shared MessagePort for AudioWorklet (component Blink>WebAudio)
Source: ChromeStatus 5079784523694080; Blink runtime_enabled_features.json5; Web Audio API 1.1.

references