Aknowledments in Photon Engine
Options
in Native
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.
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.
0
Comments
-
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?1 -
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?0 -
0
-
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.1 -
Thanks. It helped. :-)0