Is there a way to handle re-connection in Fusion or do we have to handle it manually?
Options
Comments
-
Hi @Siddhant ,
Currently, there is no similar API in Photon Fusion, you need to handle it manually.
The workflow would be:
- If you disconnect or get disconnected, Fusion will Shutdown and invoke the
OnShutdown
callback; - From there, you must dispose/destroy the old NetworkRunner instance;
- Create a new NetworkRunner, and start it again using the same Session ID used to connect the first time.
--
Ramon Melo
Photon Fusion Team
0 - If you disconnect or get disconnected, Fusion will Shutdown and invoke the