Ethers - a comprehensive Web3 library for interacting with smart contracts on Ethereum using Elixir

Thanks a lot for this library :slight_smile:

I’m trying to put a listener on a smart contract, to be notified in real time of a transaction.
In Ethers JS I can do it like that:

const socketProvider = new ethers.providers.WebSocketProvider(
            ALCHEMY_ETHER_SEPOLIA_WEBSOCKET_URL
        );
this.websocketContract = new ethers.Contract(CONTRACT_ADDRESS, contract.abi, socketProvider);
...

this.websocketContract.on("Transfer", (to, from, amount) => {
            ...
        });

I didn’t find any listener capability in the doc or source code.
Would it be an interesting feature to add?

I personally don’t like the idea of having my listener embedded in an ephemere front end web page :sweat_smile:
If the user closes it, the notification would be lost.

Thanks a lot