Search Unity

Question How to send reconnecting when server shutdown?

Discussion in 'Multiplayer' started by argenestel, Jun 7, 2022.

  1. argenestel

    argenestel

    Joined:
    Mar 28, 2022
    Posts:
    2
    Hi
    I wanted to know how can i setup a callback which will startclient reconnecting if server get shutdown?
     
  2. PcMaster24

    PcMaster24

    Joined:
    Mar 1, 2014
    Posts:
    3
    you need to add your reconnection login inside OnClientDisconnect and/or OnServerDisconnect.
    make sure you know first if it's a voluntary logout, or the server itself who went down
     
    argenestel likes this.