<div dir="ltr">Let&#39;s imagine user closed browser tab and thus terminated WebSocket connection. Is there any way to run a callback method on the server-side to handle this case?<div><br></div><div>The requirement is to perform necessary cleanup actions when connection is closed, regardless of the type of disconnect (normal, forced termination, etc.).</div><div><br></div><div>(Ideally using lower level API, and not JSR 356)<br clear="all"><div><br></div>-- <br><div dir="ltr">Vladimir Tsukur<br>Software Architect, Design Engineer</div>
</div></div>