Add documentation for the resubscribe symbol

This commit is contained in:
Arnaud 2025-03-20 15:56:03 +01:00
parent 4c19e14853
commit d1b54beec5
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -204,6 +204,13 @@ This library ships with some optional modules that provides convenience utilitie
- `ethers/erc20` module provides you with ERC20 token implementation and its events
Workaround
---------
If you're working with Hardhat, you might encounter an issue where [subscriptions stop working after 5 minutes](https://github.com/NomicFoundation/hardhat/issues/2053).
This library provides a workaround using the `--define:resubscribe` option. When this symbol is defined, the subscriptions will automatically resubscribe after 4 minutes.
Contribution
------------