aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/websocket/url/index.html
blob: 4fec72f0120ec262389f6136b9b87cf80158c6d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: WebSocket.url
slug: Web/API/WebSocket/url
translation_of: Web/API/WebSocket/url
---
<p>{{APIRef("Web Sockets API")}}</p>

<p><strong><code>WebSocket.url</code></strong> は、コンストラクタによって解決された {{domxref("WebSocket")}} の絶対 URL を返す読み取り専用のプロパティです。</p>

<h2 id="構文">構文</h2>

<pre class="syntaxbox notranslate"><em>var url</em> = aWebSocket.url;</pre>



<h2 id="値"></h2>

<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/DOMString" title="DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String."><code>DOMString</code></a></p>

<h2 id="仕様書">仕様書</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">仕様書</th>
   <th scope="col">状態</th>
   <th scope="col">備考</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('HTML WHATWG', '#dom-websocket-url', 'WebSocket: url')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>初回定義</td>
  </tr>
 </tbody>
</table>

<h2 id="ブラウザ互換性">ブラウザ互換性</h2>



<p>{{Compat("api.WebSocket.url")}}</p>