Client
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2018.
Client
インターフェイスは、Worker
や SharedWorker
などの実行可能なコンテキストを表します。Window
クライアントは、より具体的な WindowClient
によって表されます。Client
/WindowClient
オブジェクトは Clients.matchAll()
や Clients.get()
などのメソッドから取得できます。
メソッド
Client.postMessage()
-
メッセージをクライアントに送信します。
プロパティ
Client.id
読取専用-
文字列としてのクライアントの汎用一意識別子。
Client.type
読取専用-
文字列としてのクライアントの種類。
"window"
、"worker"
、"sharedworker"
のいずれかです。 Client.url
読取専用-
文字列としてのクライアントの URL。
仕様書
Specification |
---|
Service Workers # client-interface |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Client | ||||||||||||
frameType | ||||||||||||
id | ||||||||||||
postMessage | ||||||||||||
type | ||||||||||||
url |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.