Inquiry on how to process game results

gdh22
gdh22 ✭✭

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

  • Tobias
    Tobias admin
    edited August 2022 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.

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.

  • gdh22
    gdh22 ✭✭
    edited July 2022

    miss..

  • gdh22
    gdh22 ✭✭

    @Tobias

    So it is not safe to rely solely on this. You can add a server-side plugin (running per room) later if you have security concerns.

    Can you elaborate on which plugin you are referring to as the server-side plugin (running per room)?

  • gdh22
    gdh22 ✭✭

    @Tobias

    Is the SDK only available for self-hosting?

  • Tobias
    Tobias admin
    edited August 2022 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.