dpoint.</span><code><span class="memberNameLink"><a href="../Endpoint.html#onClose(jakarta.websocket.Session,jakarta.websocket.CloseReason)">onClose</a></span>&#8203;(<a href="../Session.html" title="interface in jakarta.websocket">Session</a>&nbsp;session,
       <a href="../CloseReason.html" title="class in jakarta.websocket">CloseReason</a>&nbsp;closeReason)</code></th>
<td class="colLast">
<div class="block">This method is called immediately prior to the session with the remote peer being closed.</div>
