Webhooks except PathLeave not working
Hello,
I am developing a 4-player game and want to add some persistance in terms of progression (experience etc.). For that purpose I have setup web hooks so the Photon server reports the end of a match.
I have added paths for all possible webhooks - even those I don't want to use - so I can test what happens. Every webhook's target works exactly the same (this is Javascript as the server is using Node.js), for example for PathLeave:
app.post("/webhooks/OnLeave", (req, res) => {
console.log(req.body);
res.send({ "ResultCode": 0 });
});
Only PathLeave ever gets called and the data is logged to the console which tells me the setup does indeed work as I intended it to. However the only webhook that actually interests me is PathClose as it contains the information I need but it never fires.
Any help here? The WebHook docs are really poor :(
Answers
-
Hi @mindphlux,
Thank you for choosing Photon!
So only PathLeave is called?
I would double check the configuration, otherwise, I would send an email to developer@photonengine.com with your AppId and Region and link to this forum discussion and any other relevant details.
0