TCPSocket.close

  • Revision slug: Web/API/TCPSocket.close
  • Revision title: TCPSocket.close
  • Revision id: 429477
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

{{ non-standard_header() }}

{{ B2GOnlyHeader2('privileged') }}

Summary

The close method cleanly close the connection.

Syntax

instanceOfTCPSocket.close();

Specification

Not part of any specification yet; however, this API is discussed at W3C as part of the System Applications Working Group under the Raw Sockets proposal.

See also

Revision Source

<p>{{ non-standard_header() }}</p>
<p>{{ B2GOnlyHeader2('privileged') }}</p>
<h2 id="Summary">Summary</h2>
<p>The <code>close</code> method cleanly close the connection.</p>
<h2 id="Syntax">Syntax</h2>
<pre>
<em>instanceOfTCPSocket</em>.close();</pre>
<h2 id="Specification">Specification</h2>
<p>Not part of any specification yet; however, this API is discussed at W3C as part of the <a class="external" href="http://www.w3.org/2012/sysapps/" rel="external" title="http://www.w3.org/2012/sysapps/">System Applications Working Group</a> under the <a href="http://www.w3.org/2012/sysapps/raw-sockets/" title="http://www.w3.org/2012/sysapps/raw-sockets/">Raw Sockets</a> proposal.</p>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{domxref("TCPSocket")}}</li>
  <li><a href="/en-US/docs/WebAPI/TCP_Socket" title="/en-US/docs/WebAPI/TCP_Socket">TCP Socket</a></li>
</ul>
Revert to this revision