Client extension type
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.
- on
- Implemented types
- Implementers
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postMessage(
JSAny? message, [JSObject optionsOrTransfer]) → void -
The
postMessage()
method of the Client interface allows a service worker to send a message to a client (a Window, Worker, or SharedWorker). The message is received in the "message
" event on ServiceWorkerContainer. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited