Do websockets subscriptions count against the rate limit?

(sorry for the double post, I posted this accidentally in the “other” category too)

Do websocket subscriptions count against the 100k/day rate limit?

If so, how does it count?

3 Likes

Hi @Unblended9843,

For now, we do charge for each rpc request sent over wss, eg:

wscat -c wss://mainnet.infura.io/ws/v3/…
Connected (press CTRL+C to quit)
{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}

We do not charge for events coming over wss, eg subscription events.

Likely you may want to make a new request with the information that came in the event, this would count as a request.

Chris

1 Like