reconnect the room, when the person disconnect
Options
tuanvu
✭
Hello guys, can you help me, I have a problem: when the player who is not a room owner enters the room and loses connection, when reconnecting, ActorNr is changed, the first input is 2 , after reconnecting to 3, is there a way to change that client's ActorNr to 2 as the first time connecting (I did custom authen, but don't know how to set ActorNr to a value connect head)
0
Comments
-
hi, @tuanvu
please read this:
https://doc.photonengine.com/en-US/realtime/current/troubleshooting/faq/#how_to_quickly_rejoin_a_room_after_disconnection_
and take a look at this search results: https://doc.photonengine.com/en-US/search?p=realtime&v=current&addsearch=rejoin
In general, I would say that you need set PlayerTTL during game creation and then you have to use Rejoin once you want to rejoin. You do not have to set actorNr. you only should keep same userId
best,
ilya0 -
Hi @tuanvu,
Thank yoy for choosing Photon!
I want to add to my colleague @chvetsov's reply the following:
Another useful documentation section about Quick Rejoin feature.0