Handling Match Using Socket

Hi Everyone!

I’m using Nakama match feature to handle matchmaking in my game.
My problem is that when the user moves from is mobile network to wifi the socket gets corrupted (IP changes) and I’m getting timeout in my client.

I guess that one of you already handled this kind of issue using unity, any solutions?

Thank you,
Aviv

My problem is that when the user moves from is mobile network to wifi the socket gets corrupted (IP changes) and I’m getting timeout in my client.

@avivInnplayLabs Usually its handled in the same way as how you handle the app in the background or a transient socket disconnect on a cellular network. You reconnect the socket with a new socket object in the client SDK and rejoin the active match or chat channels, etc.

1 Like