Aknowledments in Photon Engine

Options
Hi Guys,

I have been working on a board game. I am just sending a dice number to the other client. The problem is that the data doesn't reach to the other client after throwing 4-5 times. Can photon takes care of Acknowledgment? If yes then How? Thanks.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @AnkitKushwah,

    Thank you for choosing Photon!

    Photon handles acks and offers reliability & resends under the hood.
    You may need to explicitly change stuff and should be OK most of the time.
    Also, if you want "high level" callbacks for events or operations that's another story. Is it the case?

    What Photon product and what client SDK do you use?
  • AnkitKushwah
    Options
    Hi @JohnTube,

    Thank you for the response. Glad to know that I am using photon real-time C++ client SDK. Can you tell me what changes do I need to make in order to send data reliably?
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited July 2017
    Options
    @AnkitKushwah
    I moved the discussion to "Native" category.
    @Kaiserludi will help you.
  • Kaiserludi
    Options
    Hi @AnkitKushwah.

    For every message that you send through Client::opRaiseEvent() you can specify the reliability in the first parameter of that function. Pass 'true' to send it reliable or 'false' to send it unreliable.
  • AnkitKushwah
    Options
    Thanks. It helped. :-)