WebIDLpedia

BroadcastChannel interface

Definition

HTML Standard defines BroadcastChannel



[Exposed=(Window,Worker)]
interface BroadcastChannel : EventTarget {
  constructor(DOMString name);

  readonly attribute DOMString name;
  undefined postMessage(any message);
  undefined close();
  attribute EventHandler onmessage;
  attribute EventHandler onmessageerror;
};

Methods and attributes that return objects implementing BroadcastChannel

Referring IDL interfaces/dictionaries

Referring specifications