How to make sure if an event raised successfully? c++ SDK

Options
Hi

I'm using cocos2d-x c++ SDK.
When I raised an reliable (RUDP) event, how to make sure it's sent?

If the network connection lost while sending the event, how should I handle it?
I would reconnect and rejoin the same room, should I resend the event manually or SDK would do it for me?
I would like to know the detail of the queue mechanism when error occurs.

Thanks a lot!
Jo

Comments

  • Kaiserludi
    Options
    Hi Jo.

    For Reliable communication Photon guarantees that it either delivers the message or, if the connection proofs to be too bad for that, that it considers the connection lost and calls the disconnect callback.

    In case that that guarantee is not enough for you needs and you need Photon to continue trying to deliver certain messages after reestablishing a lost connection, then you need to queue those messages yourself and manually resend it.
  • JoH
    Options
    Hi I got it.
    Thanks for your help.