Important:
Checks whether a subscriber has permission to receive messages on a Wix Realtime channel.
Wix calls this method when a subscriber from another app attempts a cross-app subscription to one of your app's channels. The call is synchronous: Wix waits for your response before allowing or denying the subscription.
Wix uses the read value in your response to allow or deny the subscription. Return { read: true } to allow the subscriber to receive messages on the specified channel or resource, or { read: false } to deny.
Learn more about the Realtime APIs.
Error handling:* Use { read: false } for normal policy denials. Don't throw an error to deny access. Return InvalidArgumentError only when the request contains invalid or missing data that prevents your service from processing it. For any other failure (thrown error, timeout, or unreachable service), Wix denies the subscription with a 503 HTTP status code.