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 full)
Index
Properties
Methods
Methods
postMessage
- post
Message (message, transfer): void Parameters
- message: any
- transfer: Transferable[]
Returns void
- post
Message (message, options?): 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