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 ?
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 ?
0
Comments
-
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 callopCreateRoom()
oropLeaveRoom()
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 toopCreateRoom()
oropLeaveRoom()
to which a call tocreateRoomreturn()
orleaveRoomReturn()
can refer.1