PublishMessage webhook on Javascript SDK
Matchbox
✭
in Photon Chat
Hello,
I'm trying to create a webhook sdk on Javascript but the problem is that there's no place in the Javascript sdk to set the ForwardWebhook to true like said in this particular message on the webhook setup:
What is the other way around, besides making a HTTP POST request to the function itself?
I'm trying to create a webhook sdk on Javascript but the problem is that there's no place in the Javascript sdk to set the ForwardWebhook to true like said in this particular message on the webhook setup:
Public and private messages will not trigger a webhook by default. Set the webflag "ForwardWebhook" to "true" in your client to trigger the webhook at "PathPublishMessage".
What is the other way around, besides making a HTTP POST request to the function itself?
0
Comments
-
I meant async to not wait for the response of the publishMessage webhook0
-
Yes I know.
What I meant by "async" is that we do not pause the fiber and processing of other requests inside the channel.0 -
Yes, but not letting the message being published slows the interaction... which turns the Webflag (for my case) inutile. Using an Ajax call to the publishMessage directly would be better, but not a good pactice. That's why I'm requesting some workaround.0
-
Hi @Matchbox,
Changing this could take a while, we need to think of a flexible way to allow both behaviours on demand and to make it hard to use this flexibility for "cheating".
and it does not look like a priority now.
If this is really important for you send an email to developer@photonengine.com and add link to this forum discussion. maybe you can convince someone to raise the priority of this task.
No promises, no ETAs though.
You're the first to ask such "good" thing.0