# Does match.presences contain the presence of the local player?

**URL:** <https://forum.heroiclabs.com/t/does-match-presences-contain-the-presence-of-the-local-player/1186>\
**Category:** Local Setup\
**Created:** [November 27, 2020, 11:00pm UTC](https://forum.heroiclabs.com/t/does-match-presences-contain-the-presence-of-the-local-player/1186 "2020-11-27T23:00:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GTG101](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@GTG101](https://forum.heroiclabs.com/u/GTG101)\
**Post date:** [November 27, 2020, 11:00pm UTC](https://forum.heroiclabs.com/t/does-match-presences-contain-the-presence-of-the-local-player/1186/1 "2020-11-27T23:00:09Z")

</div>

Will match.presences contain the presence of the local player? I’ve seen code in the Nakama documentation that seems to indicate that match.presences contains the local player ([https://heroiclabs.com/docs/gameplay-multiplayer-realtime/](https://heroiclabs.com/docs/gameplay-multiplayer-realtime/)), but in practice match.presences seems to only return the non local presences.

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [November 28, 2020, 10:19am UTC](https://forum.heroiclabs.com/t/does-match-presences-contain-the-presence-of-the-local-player/1186/2 "2020-11-28T10:19:17Z")

</div>

@GTG101 The `match.presences` contain the users who are already in the match. You should subscribe to the `socket.ReceivedMatchPresence` action handler (or similar based on whatever SDK you use for Nakama) to receive the presences that join the match or leave after you’ve joined. You can see it covered in the docs here:

[https://heroiclabs.com/docs/gameplay-multiplayer-realtime/#list-opponents](https://heroiclabs.com/docs/gameplay-multiplayer-realtime/#list-opponents)

Use the `match.Self` field which contains the presence for your own socket connection in the match.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![GTG101](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@GTG101](https://forum.heroiclabs.com/u/GTG101)\
**Post date:** [November 28, 2020, 5:30pm UTC](https://forum.heroiclabs.com/t/does-match-presences-contain-the-presence-of-the-local-player/1186/3 "2020-11-28T17:30:54Z")

</div>

It does help, thanks.
