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

Add workaround for websocket subscription issues #201

Closed
wants to merge 1 commit into from

Conversation

markspanbroek
Copy link
Member

Mine a block every 4 minutes, to keep hardhat from forgetting about websocket subscriptions after 5
minutes.

Mine a block every 4 minutes, to keep hardhat from
forgetting about websocket subscriptions after 5
minutes.
@markspanbroek markspanbroek force-pushed the workaround-websocket-subscriptions branch from 61ff18e to cc69f3a Compare November 8, 2024 15:19
@markspanbroek
Copy link
Member Author

Never mind, this doesn't actually work. Mining a block every now and then only helps if you happen to use ethers.js with polling, because it only polls for new filter updates when a new block is mined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant