I have an expo app that uses the javascript sdk to send/receive messages. I’m trying to intercept all messages on my backend before they are delivered to the recipient. In some cases I want to reject the message and discard it.
How can this be achieved? I tried to achieve this with a webhook implementation, but it’s only used for notifying the backend of events. Is there a way to setup a pre-event webhook that is called before the message is delivered?