ocs.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;onerror)</code></th>
<td class="colLast">
<div class="block"><span class="changed_added_4_0">
 Sets the JavaScript event handler function that is invoked when a connection error has occurred and the websocket
 will attempt to reconnect.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="co