Handling disconnect when LAN cable unplugged

Hi, what is the best way to shut down photon voice if you lose connection. I'm catching OnDisconnectedFromPhoton but I get socket errors and the red text in debug before OnDisconnectedFromPhoton is triggered. It works and there is no visible effect in release but I want to make sure I'm doing the right thing.

Thanks

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @dom,

    Thank you for choosing Photon!

    OnDisconnectedFromPhoton
    Is the proper way to handle this yes.

    What Photon Voice version are you using?
    What Unity version are you using?
    Are you testing on Unity Editor or on devices? which devices (model, OS)?

    I get socket errors and the red text in debug
    Could you provide those logs?