Javascript Switch or Set Master Client

Hello! Photon Unity has the method:
PhotonNetwork.SetMasterClient(photonPlayer);

What's the Javascript equivalent for this? I can't seem to find it. Thanks!

Comments

  • Hi,
    Setting master client is not supported by js Photon client.
    You can get current master with myRoomMasterActorNr() call.
  • Is there any way I can request this as a feature?
  • We added a new method in the latest SDK version 4.1.1.0: LoadBalancingClient.myRoom().setMasterClient(actorNr)
  • vadim wrote: »
    We added a new method in the latest SDK version 4.1.1.0: LoadBalancingClient.myRoom().setMasterClient(actorNr)

    Wow thank you so much! That's awesome
Sign In or Register to comment.