# Match listing in relayed multiplayer - Unity

**URL:** <https://forum.heroiclabs.com/t/match-listing-in-relayed-multiplayer-unity/2767>\
**Category:** Client Libraries\
**Tags:** sdk-unity\
**Created:** [June 21, 2022, 8:22pm UTC](https://forum.heroiclabs.com/t/match-listing-in-relayed-multiplayer-unity/2767 "2022-06-21T20:22:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzetkowski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mzetkowski/32/1211_2.png) [@mzetkowski](https://forum.heroiclabs.com/u/mzetkowski)\
**Post date:** [June 21, 2022, 8:22pm UTC](https://forum.heroiclabs.com/t/match-listing-in-relayed-multiplayer-unity/2767/1 "2022-06-21T20:22:58Z")

</div>

Hey,

I’m working with relayed multiplayer in Unity and want to get a list of matches. I create a match with CreateMatchAsync function, can join it an play the game, but when I try to list matches with Client.ListMatchesAsync(Session, 0, 8, 10, false, “”, “”), I get an empty list. Any suggestions? Thanks!

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [June 22, 2022, 9:22am UTC](https://forum.heroiclabs.com/t/match-listing-in-relayed-multiplayer-unity/2767/2 "2022-06-22T09:22:16Z")

</div>

Hello @mzetkowski.

Are you listing while there’s players connected to the relayed match? After the last player disconnects, the match is destroyed so it won’t appear in the listing.

---

<div class="post-metadata">

**Author:** ![mzetkowski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mzetkowski/32/1211_2.png) [@mzetkowski](https://forum.heroiclabs.com/u/mzetkowski)\
**Post date:** [June 22, 2022, 3:00pm UTC](https://forum.heroiclabs.com/t/match-listing-in-relayed-multiplayer-unity/2767/3 "2022-06-22T15:00:28Z")

</div>

Hey, I run 3 instances of the game locally, create a match with CreateMatchAsync and a name as parameter, in the other instance I also call CreateMatchAsync with the same name, so I join the same match, and finally in the last instance I try listing matches with ListMatchesAsync - the matches list is empty. Oh, and I use ContinueWith method on the task object to handle the results.

---

<div class="post-metadata">

**Author:** ![sean](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sean/32/643_2.png) [@sean](https://forum.heroiclabs.com/u/sean)\
**Post date:** [June 22, 2022, 3:43pm UTC](https://forum.heroiclabs.com/t/match-listing-in-relayed-multiplayer-unity/2767/4 "2022-06-22T15:43:25Z")

</div>

Hi @mzetkowski are you running 3 clients connecting to the same Nakama server? Can you share your match creation, joining and listing code and we’ll take a look.
