# Can the server know that the player was forced to quit?

**URL:** <https://forum.heroiclabs.com/t/can-the-server-know-that-the-player-was-forced-to-quit/5204>\
**Category:** Runtime Framework\
**Tags:** typescript\
**Created:** [April 23, 2024, 3:47pm UTC](https://forum.heroiclabs.com/t/can-the-server-know-that-the-player-was-forced-to-quit/5204 "2024-04-23T15:47:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![waguwagu](https://avatars.discourse-cdn.com/v4/letter/w/dfb087/32.png) [@waguwagu](https://forum.heroiclabs.com/u/waguwagu)\
**Post date:** [April 23, 2024, 3:47pm UTC](https://forum.heroiclabs.com/t/can-the-server-know-that-the-player-was-forced-to-quit/5204/1 "2024-04-23T15:47:43Z")

</div>

I want to change the status value of storage when the player disconnects. The MatchLeave event does not seem to occur if the player forces a quit rather than leaving the match.  
Is there some kind of event in TS for when the connection to the client is lost?

Server Framework Runtime language : TS

---

<div class="post-metadata">

**Author:** ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)\
**Post date:** [April 23, 2024, 5:34pm UTC](https://forum.heroiclabs.com/t/can-the-server-know-that-the-player-was-forced-to-quit/5204/2 "2024-04-23T17:34:56Z")

</div>

MatchLeave must be invoked, if not this is a bug (either in Nakama or your match handler more likely case). Please submit a minimal reproducible case to Nakama GitHub repo.

---

<div class="post-metadata">

**Author:** ![waguwagu](https://avatars.discourse-cdn.com/v4/letter/w/dfb087/32.png) [@waguwagu](https://forum.heroiclabs.com/u/waguwagu)\
**Post date:** [April 24, 2024, 4:49am UTC](https://forum.heroiclabs.com/t/can-the-server-know-that-the-player-was-forced-to-quit/5204/3 "2024-04-24T04:49:15Z")

</div>

OK thank you. I’ll check again
