API PubSub Limits

The send a pubsub message API also returns headers to help keep within the timing constraints

For a Channels it is

resp.headers[‘ratelimit-ratelimitermessagesbychannel-remaining’], ‘/’, resp.headers[‘ratelimit-ratelimitermessagesbychannel-limit’]

So you can use this to auto rate limit your sending logic