Not send OperationResponse on OnOperationRequest(OperationRe

edited August 2011 in Photon Server
Can I not send Response in the OnOperationRequest() method? Would it not be, any side effects because of this?
The fact is that I want the client to alter his state only on Events. That is, the client sends to the server Operation, and in return receive any Event for which and reacts.
I will not post the Response, even if "!operation.IsValid".

Thanks!

Comments

  • You don't have to send a response. If you don't, it doesn't matter and events are fine.
    The difference is usually that a response is for the single client who ordered the server to do something. Events are (usually) for more than one player.

    However, if the request fails you should send some response. This helps tremendously to get rid of errors. Much of the testing during development is cooperation between client and server.
Sign In or Register to comment.