How can I send user data from client to InitRequest on the server?

Options
Hello, I notice that when create peer on the server side. It has InitRequest as an argument. InitRequest has UserData as a public object variable. My client is Unity. I'm using Photon plugin for Unity (Photon3Unity3D.dll). I have PhotonPeer on the client side to connect to server. But its connect method only has serverAddress and applicationName as arguments. I can currently connect and communicate with the server just fine using connect method. But how can I send UserData from the client and use it in CreatePeer on the server?

Comments

  • chvetsov
    Options
    @nattawitta No, you can not. UserData are used for server-side needs.

    there is no way so far to pass some object during connecting from client to server. it will be probably enabled in the future

    best,
    ilya