From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/websocket/protocol/index.html | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 files/ja/web/api/websocket/protocol/index.html (limited to 'files/ja/web/api/websocket/protocol') diff --git a/files/ja/web/api/websocket/protocol/index.html b/files/ja/web/api/websocket/protocol/index.html new file mode 100644 index 0000000000..542e7247a0 --- /dev/null +++ b/files/ja/web/api/websocket/protocol/index.html @@ -0,0 +1,41 @@ +--- +title: WebSocket.protocol +slug: Web/API/WebSocket/protocol +translation_of: Web/API/WebSocket/protocol +--- +

{{APIRef("Web Sockets API")}}

+ +

WebSocket.protocol は、サーバーが選択したサブプロトコル名を返す読み取り専用のプロパティです。これは {{domxref("WebSocket")}} オブジェクトが作成されるときに、引数の protocols で指定された文字列のいづれかになりますが、もし接続が確立されていない場合は、空の文字列となります。

+ +

構文

+ +
var protocol = aWebSocket.protocol;
+ +

+ +

DOMString

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('HTML WHATWG', '#dom-websocket-protocol', 'WebSocket: protocol')}}{{Spec2('HTML WHATWG')}}初回定義
+ +

ブラウザ互換性

+ + + +

{{Compat("api.WebSocket.protocol")}}

-- cgit v1.2.3-54-g00ecf