Interface Client
interface Client {
frameType: FrameType;
id: string;
type: ClientTypes;
url: string;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
}
frameType: FrameType;
id: string;
type: ClientTypes;
url: string;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
}
Hierarchy
- Client (View Summary)
Index
Properties
Methods
Methods
postMessage
- postMessage(message: any, transfer: Transferable[]): void
Parameters
- message: any
- transfer: Transferable[]
Returns void
- postMessage(message: any, options?: StructuredSerializeOptions): void
Parameters
- message: any
Optional
options: StructuredSerializeOptions
Returns void
The Client interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get().
MDN Reference