# Closed action is not called with HTML5

**URL:** <https://forum.heroiclabs.com/t/closed-action-is-not-called-with-html5/3573>\
**Category:** Client Libraries\
**Tags:** sdk-unity\
**Created:** [March 4, 2023, 11:30pm UTC](https://forum.heroiclabs.com/t/closed-action-is-not-called-with-html5/3573 "2023-03-04T23:30:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skullptr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/skullptr/32/1630_2.png) [@skullptr](https://forum.heroiclabs.com/u/skullptr)\
**Post date:** [March 4, 2023, 11:30pm UTC](https://forum.heroiclabs.com/t/closed-action-is-not-called-with-html5/3573/1 "2023-03-04T23:30:23Z")

</div>

I was playing with `WebGL.scene` which goes with Nakama Unity SDK and I noticed that `Closed` of `ISocket` is not called. How can I close the socket?

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [March 6, 2023, 4:02pm UTC](https://forum.heroiclabs.com/t/closed-action-is-not-called-with-html5/3573/2 "2023-03-06T16:02:49Z")

</div>

Hey @skullptr thanks for noticing this. We have a fix under code review [Comparing master...luke/webgl-close-fix · heroiclabs/nakama-unity · GitHub](https://github.com/heroiclabs/nakama-unity/compare/luke/webgl-close-fix?expand=1) and when its merged into master you’ll be able to pull it in using the Unity Package Manager. The fix will also be merged in our next published release.
