How to get events pushed instead of polling in Ethereum?

finlaydotweber
0
0

I am trying to see how I can subscribe to an events on the Ethereum blockchain and I can only see polling mechanism and no push mechansim

I am look at the documentation for the JSON RPC endpoints here https://ethereum.github.io/execution-apis/api-documentation/

I can see given the combination of eth_newFilter, eth_getFilterChanges, eth_getFilterLogs, it is possible to register a filter on an RPC node and poll for changes.

What if I dont want to poll but require a push mechanism? How can that be done? I dont see any endpoint with names containing things like subscribe, listen etc so not sure how to go about this.