I have two players in a opened Party.
Both player register to the onmatchmakermatched hook, waiting for a match to be found.
The party leader is the one adding the matchmakerParty.
socket.addMatchmakerParty(
party.party_id,
`*`,
2,
2);
Unfortunately the onmatchmakermatched hook is never triggered. I also tried without the wildcard and string properties, but there seems to be a problem when a party is involved. It works when i use the addMatchmaker (without party).
Here are the logs i got in the server:
2024-10-29 23:54:35 {"level":"debug","ts":"2024-10-29T22:54:35.765Z","caller":"server/pipeline.go:65","msg":"Received *rtapi.Envelope_PartyMatchmakerAdd message","uid":"dd33f264-61a2-49f5-bc3e-1d512d512797","sid":"bcabd2db-9648-11ef-b7ec-7106fdcb5b46","cid":"4","message":{"PartyMatchmakerAdd":{"party_id":"39ae75a6-6a25-4ac5-9a93-0de3b6341856.nakama1","min_count":2,"max_count":2,"query":"*"}}}
2024-10-29 23:54:35 {"level":"debug","ts":"2024-10-29T22:54:35.775Z","caller":"server/session_ws.go:397","msg":"Sending *rtapi.Envelope_PartyMatchmakerTicket message","uid":"dd33f264-61a2-49f5-bc3e-1d512d512797","sid":"bcabd2db-9648-11ef-b7ec-7106fdcb5b46","envelope":"cid:\"4\" party_matchmaker_ticket:{party_id:\"39ae75a6-6a25-4ac5-9a93-0de3b6341856.nakama1\" ticket:\"f2a3a3a2-d22e-4442-80ad-e2ffc368b25d\"}"}
2024-10-29 23:54:42 {"level":"debug","ts":"2024-10-29T22:54:42.973Z","caller":"server/pipeline.go:65","msg":"Received *rtapi.Envelope_Ping message","uid":"dd33f264-61a2-49f5-bc3e-1d512d512797","sid":"bcabd2db-9648-11ef-b7ec-7106fdcb5b46","cid":"5","message":{"Ping":{}}}
2024-10-29 23:54:42 {"level":"debug","ts":"2024-10-29T22:54:42.974Z","caller":"server/session_ws.go:397","msg":"Sending *rtapi.Envelope_Pong message","uid":"dd33f264-61a2-49f5-bc3e-1d512d512797","sid":"bcabd2db-9648-11ef-b7ec-7106fdcb5b46","envelope":"cid:\"5\" pong:{}"}
Don’t see any errors showing, nothing seems to happen after the partyMatchMaker is added.
Client: nakama-js 2.8.0
Server: 3.24.0