MatchmakerRemove is not detecting socket disconnect


I’m trying to detect when the matchmaking request for a user is canceled. The MatchmakerRemove doesn’t seem to get called when the client is disconnected. (when the series of “Cleaning up closed client connection” and further messages are logged). Do you have any hints on what can I do?

MatchmakerRemove is a client-triggered operation, it does not fire when the socket disconnects. Any matchmaking tickets active for that socket are cancelled automatically without that function.

You can hook into the SessionEnd event (initializer.RegisterEventSessionEnd(...) in the Go runtime for example) and listen for both.

1 Like