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();
attribute EventHandler onmessage;
attribute EventHandler onmessageerror;
};
This interface is extended in the following specifications:
- WebRTC Encoded Transform
partial interface DedicatedWorkerGlobalScope { attribute EventHandler onrtctransform; };
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();
attribute EventHandler onmessage;
attribute EventHandler onmessageerror;
unsigned long requestAnimationFrame(FrameRequestCallback callback);
undefined cancelAnimationFrame(unsigned long handle);
attribute EventHandler onrtctransform;
};
Referring specifications
- WebRTC Encoded Transform refers to
DedicatedWorkerGlobalScope