Open a5-pickle opened 5 months ago
Off-chain processes stop receiving log events after some point if the process has run for long enough.
Consider adding multiplexer or other solution using onLogs instead of anchor's addEventListener.
onLogs
addEventListener
Also applies to onSlotChange. Hopefully share same sort of solution between the two subscriptions?
onSlotChange
Consider using https://solana-labs.github.io/solana-web3.js/classes/Connection.html#removeSlotChangeListener and https://solana-labs.github.io/solana-web3.js/classes/Connection.html#removeOnLogsListener.
Off-chain processes stop receiving log events after some point if the process has run for long enough.
Consider adding multiplexer or other solution using
onLogs
instead of anchor'saddEventListener
.Also applies to
onSlotChange
. Hopefully share same sort of solution between the two subscriptions?Consider using https://solana-labs.github.io/solana-web3.js/classes/Connection.html#removeSlotChangeListener and https://solana-labs.github.io/solana-web3.js/classes/Connection.html#removeOnLogsListener.