How to know whether player have joined room before when he disconnected?

I want to know that how to determine whether player joined a room and play before he disconnect(internet problem) and rejoin room. Or that just need use photonnetwork.reconnectandrejoin no matter which scenario player have?if I did that will cause which problem?

Comments

  • Hi @k3921,

    if the client attempts to ReconnectAndRejoin but hasn't joined a room before, a warning is logged to the console and the connection process will fail.

    To avoid this you can set a boolean value inside the OnJoinedRoom callback and check this value before attempting to ReconnectAndRejoin.
Sign In or Register to comment.