">close</a></span>(<a href="../../../jakarta/websocket/CloseReason.html" title="class in jakarta.websocket">CloseReason</a>&nbsp;closeReason)</code>
<div class="block">Close the current conversation, giving a reason for the closure.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel">Endpoint.</span><code><span class="memberNameLink"><a href="../../../jakarta/websocket/Endpoint.html#onClose-jakarta.websocket.Session-jakarta.webs