Inquiry on how to process game results
hello.
I want to use the "real time" service.
Since the front-end server is a web server, we are trying to figure out what is the best way to store the results of the room.
Is there a method below or a recommended method?
1. How to process the game result on the web server after receiving it as a webhook
2. How to transmit and process game results by peer
If you have any recommendations other than the two methods, please advise.
Best Answer
-
The Photon Server Plugins are developed with the self hosted Photon version. The resulting plugin DLL file can be run on an Photon Enterprise Cloud, where you book servers we maintain for you. The same DLL can be used, so it's not a big switch.
1
Answers
-
You could use the WebHooks and transmit some state of the room with each call. The PathClose would be of interest to get the final result of a room.
The problem with this is: Either client can just write the properties of a room. So it's not safe to just rely on this. You could add a server side plugin (which runs per room) later on, if there are security issues.
See Webhooks.
To report a game's result via the clients, simply offer some HTTP backend to them.
1 -
miss..
0 -
For Realtime / PUN you could create custom server logic with the Photon Server Plugin SDK.
0 -
The Photon Server Plugins are developed with the self hosted Photon version. The resulting plugin DLL file can be run on an Photon Enterprise Cloud, where you book servers we maintain for you. The same DLL can be used, so it's not a big switch.
1