Link between operation and result

Options
Hello,

What I want to do is that I get an handle(operationId) when I call operations (opCreateRoom, opLeaveRoom, ...), that I can access in the return (createRoomReturn, leaveRoomReturn, ...) that I can use to trigger callbacks when I hit the return functions.

Is there something similar that I can use ?

Comments

  • Kaiserludi
    Options
    Hi @benjaml.

    Photon does not have something like that as it is not needed.

    The same Client instance can't be active in more than one room at once.
    Because of that it makes no sense to call opCreateRoom() or opLeaveRoom() a second time while the operation from the first call is still in process and the Client actively prevents you from doing that.
    Hence there is always exactly one call to opCreateRoom() or opLeaveRoom() to which a call to createRoomreturn() or leaveRoomReturn() can refer.