Back to the basic 2 - OnConnected and OnConnectedToMaster

Can someone give me some tips to fully understand the difference between the two?
I get that OnConnectedToMaster happens on the first connection to the master server, OnConnected in all the other cases?
Thanks for you help


  • Hi @flecheria,

    You can read the documentation online or in the client code.

    You don't need OnConnected in most cases.
    OnConnected is called once after a successful connection to the Photon Master Server but before authentication on that server. It's an indicator that there is an internet connection and that Photon servers are reachable. But you can skip it.
  • Sorry for delay. Thanks
    it works. I'm getting better to understand how PUN works
    little by little
Sign In or Register to comment.