ChannelId

markharoldr
edited October 2011 in Photon Server
Hello Everyone,

I am a little bit confused on the use of ChannelId parameter in the OpCustom method. What is the use of it? And how will I determine the correct channel id to be passed?


Yours,
Mark

Comments

  • It's a feature for rUDP.
    Sending operation through the same channel ensures that they are processed in order.
    for example, if you send operation 1 and 2 in channel 0 it is guaranteed that first operation 1 arrives and then operation 2.
    If you send operation 2 in channel 1 instead it could happen that first operation 2 arrives.

    You will usually just use channel 0.
    If you want to use more channels init the number of channels before you connect (set PhotonPeer.ChannelCount).