-   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOnclose</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setOnclose&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;onclose)</pre>
<div class="block">Sets the JavaScript event handler function that is invoked when the websocket is closed
 <span class="changed_modified_4_0">and will not anymor