Checks permissions for a subscriber on a channel or resource.
This hook runs automatically whenever a new subscription is attempted.
Set up this hook as a named export in the realtime-permissions.js file in a site's backend.
Learn more about setting up permissions.
Channel and resource to check permissions for.
Subscriber to check permissions for.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.