WebIDLpedia

Client interface

Definition

Service Workers Nightly defines Client



[Exposed=ServiceWorker]
interface Client {
  readonly attribute USVString url;
  readonly attribute FrameType frameType;
  readonly attribute DOMString id;
  readonly attribute ClientType type;
  undefined postMessage(any message, sequence<object> transfer);
  undefined postMessage(any message, optional StructuredSerializeOptions options = {});
};

This interface is extended in the following specifications:

Consolidated IDL (across mixin and partials)


[Exposed=ServiceWorker]
interface Client {
  readonly attribute USVString url;
  readonly attribute FrameType frameType;
  readonly attribute DOMString id;
  readonly attribute ClientType type;
  undefined postMessage(any message, sequence<object> transfer);
  undefined postMessage(any message, optional StructuredSerializeOptions options = {});
    readonly attribute ClientLifecycleState lifecycleState;
};

Methods and attributes that return objects implementing Client

Referring IDL interfaces/dictionaries

Referring specifications