 7.4.1</a> and <a href="../../websocket/CloseReason.CloseCodes.html" title="enum in jakarta.websocket"><code>CloseReason.CloseCodes</code></a> API for an elaborate list of all close codes.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>onclose</code> - The JavaScript event handler function that is invoked when the websocket is closed.</dd>
</dl>
</li>
</ul>
<a id="isConnected()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isConnected</h4>
<pre class="methodS