First presence in matchmaker made match

Hello, I am currently developing a small game using Godot 4.2.1 Stable and Nakama 3.3.1.

The issue I am facing is that when 2 players join a match after the matchmaker matched them together, the first one to join is notified (using socket.received_match_presence signal) when the next player joins but other players don’t know about the ones that have joined before they themselves did.

I don’t know what I am doing wrong but I think I have simply misunderstood the documentation and I haven’t seen this subject being treated anywhere else.

Thank you!

@EptesicusDev the Join operation returns the current presences, the hooks will only receive the diffs thereafter for any joins/leaves.

Hope this clarifies.

Thanks for your answer @sesposito.

What is the correct way for players to get the full list of players already in the match upon joining?
I can’t find an answer anywhere.

Thanks again.

If you var result = await join_match_async(...) you should get back the current presences.

1 Like

Beginner mistake.

It’s fixed, thank you for your swift answers.