I know that to track transactions on Ethereum you should use web3 or ethers WebSocket provider and listen to specific events, then filter by logs if needed. How similar thing can be done on Solana?
My guess is to use Connection class from web3.js and onLogs method, but I do not know how to construct log filters and I could not find any example. Anyone has experience with that?