nakama-js icon indicating copy to clipboard operation
nakama-js copied to clipboard

onmatchmakermatched not triggered with matchMakerParty

Open Laguigue opened this issue 1 year ago • 1 comments

I have one user that created a party and an other one that joins it.

The two users register to onmatchmakermatched hook: socket.onmatchmakermatched = async (matched) => { const match = await socket.joinMatch(undefined, matched.token); };

The leader of the party add the matchMakerParty:

socket.addMatchmakerParty( party.party_id, *, 2, 2 );

The onmatchmakermatched (registered before calling addMatchmakerParty) is never triggered, so my two players can't join the match in that case. If i try without a party context with addMatchmaker, it works as expected.

(onpartymatchmakerticket is fired and gives the non-leader player a ticket, but i'm not sure how it's useful here)

I don't see any errors in the log of nakama server.. I'm running out of ideas

I use nakama server version 3.24.0 and nakama-js version 2.8.0

Laguigue avatar Oct 28 '24 19:10 Laguigue