WebIDLpedia

DedicatedWorkerGlobalScope interface

Definition

HTML Standard defines DedicatedWorkerGlobalScope


DedicatedWorkerGlobalScope includes AnimationFrameProvider;

[Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
  [Replaceable] readonly attribute DOMString name;

  undefined postMessage(any message, sequence<object> transfer);
  undefined postMessage(any message, optional StructuredSerializeOptions options = {});

  undefined close();
};

DedicatedWorkerGlobalScope includes MessageEventTarget;

This interface is extended in the following specifications:

Consolidated IDL (across mixin and partials)


[Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
  [Replaceable] readonly attribute DOMString name;

  undefined postMessage(any message, sequence<object> transfer);
  undefined postMessage(any message, optional StructuredSerializeOptions options = {});

  undefined close();
  unsigned long requestAnimationFrame(FrameRequestCallback callback);
  undefined cancelAnimationFrame(unsigned long handle);
  attribute EventHandler onmessage;
  attribute EventHandler onmessageerror;
    attribute EventHandler onrtctransform;
};

Referring specifications