How can I send messages to Photon Server using PUN?
Options
I want to send my action to the server, and have the server handle validation, acknowledgment (that the action is valid), and broadcasting it to the clients. How do I do that using PUN?
A follow-up question is, how do I broadcast messages to the clients from the server?
A follow-up question is, how do I broadcast messages to the clients from the server?
0
Comments
-
please follow all tutorials first
best
ilya0 -
I've read through this tutorial. But it doesn't use Photon Server, and it doesn't give an example on how to send messages to server. It only shows how to send messages to other clients.0
-
After some digging, I found that I can send messages from client to server using:
PhotonNetwork.networkingPeer.OpCustom()0 -
all operations are send through server. there is not direct communication in PUN0
-
@chvetsov That is not the point though. I don't want to send my messages to other clients. I want to send it to the server.0
-
as i said you always send operations to server and server decides what to do. what to do depends on operation and flags of operation0
-
hi, 0bytedna
> handles validation, acknowledgments
i'm not sure what do you mean
best,
ilya0