Photon C++ Client API: Events

Photon C++ Client API

Photon C++ Client API  4.1.12.2
Events

Unlike operations, events are "messages" that are rarely triggered by the client that receives them. Events usually come from outside: the server or other clients.

They are created as a side effect of operations (e.g. when you join a room) or raised as main purpose of the operation (like done by opRaiseEvent()). Most events carry some form of data, but in rare cases the type of the event itself is the only message.

Events are instances of EventData with arbitrary content.