Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solana: handle dropped websocket subscriptions gracefully #97

Open
a5-pickle opened this issue Apr 19, 2024 · 0 comments
Open

solana: handle dropped websocket subscriptions gracefully #97

a5-pickle opened this issue Apr 19, 2024 · 0 comments
Labels
bug Something isn't working off-chain Relating to off-chain processes testnet Important for any test networks

Comments

@a5-pickle
Copy link
Contributor

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.

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.

@a5-pickle a5-pickle added bug Something isn't working testnet Important for any test networks off-chain Relating to off-chain processes labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working off-chain Relating to off-chain processes testnet Important for any test networks
Projects
None yet
Development

No branches or pull requests

1 participant