ternalLink">String</a>&nbsp;onclose)</code></th>
<td class="colLast">
<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 anymore attempt to reconnect</span>.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setOnerror(java.lang.String)">setOnerror</a></span>&#8203;(<a href="https://d