heroiclabs / nakama-js

JavaScript client for Nakama server written in TypeScript.
https://heroiclabs.com/docs/nakama/client-libraries/javascript/
Apache License 2.0
196 stars 55 forks source link

onmatchmakermatched not triggered with matchMakerParty #207

Open Laguigue opened 2 weeks ago

Laguigue commented 2 weeks ago

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

linear[bot] commented 2 weeks ago

SDK-858 onmatchmakermatched not triggered with matchMakerParty