Allow to clear/disconnect the provider - specifically websocket provider #3114
Labels
enhancement
New feature or improvement.
minor-bump
Planned for the next minor version bump.
v5
Issues regarding legacy-v5
Describe the Feature
I didn't find a way in the documentation of how to clear a document, I found the ".removeAllListeners()" but is that enough? what about a WebSocket provider? can I close its connection somehow?
Can we add a function to clear provider resources like:
Code Example
The text was updated successfully, but these errors were encountered: