Websocke billing

when I am using ethers.providers.JsonRpcProvider.on(…) as I understand it just polls and filters and it is quite inefficient concerning requests count.
but when I use ethers.providers.WebSocketProvider.on(…) it should create WebSocket connection where relevant events will be sent to me.
So how will WebSocket events be billed - request per event or request per connection?
For example:
provider = new ethers.providers.WebSocketProvider(“wss://speedy-nodes-nyc.moralis.io/****/bsc/mainnet/ws”);
provider.on(“pending”,console.log);

1 Like

I think that it will not be per received event when using websockets.