Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imatch Presences is empty #156

Closed
peyman1959 opened this issue May 26, 2023 · 1 comment
Closed

Imatch Presences is empty #156

peyman1959 opened this issue May 26, 2023 · 1 comment

Comments

@peyman1959
Copy link

There are 2 player in a match, I cache the Imatch that was returned by the socket.JoinMatchAsync, but one of my clients' match.Presences is empty for no reason! Is there any server-side or client-side permissions that I'm missing?

@lugehorsam
Copy link
Contributor

lugehorsam commented May 26, 2023

Hey @peyman1959 -- the first client that joins will be joining an empty matche which is why Presences is empty. You should listen to ISocket.ReceivedMatchPresence for the second client who joins and then call IMatch.UpdatePresences on your match to keep the local copy up to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants