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

Allow to clear/disconnect the provider - specifically websocket provider #3114

Open
liron-navon opened this issue Jun 24, 2022 · 1 comment
Labels
enhancement New feature or improvement. minor-bump Planned for the next minor version bump. v5 Issues regarding legacy-v5

Comments

@liron-navon
Copy link

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

provider.clear();
provider.disconnect();
@liron-navon liron-navon added the enhancement New feature or improvement. label Jun 24, 2022
@ricmoo ricmoo added the minor-bump Planned for the next minor version bump. label Jun 30, 2022
@ricmoo
Copy link
Member

ricmoo commented Apr 5, 2023

I likely won't be making any new changes to the API for v5, but this features is available with the provider.destroy() method.

@ricmoo ricmoo added the v5 Issues regarding legacy-v5 label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement. minor-bump Planned for the next minor version bump. v5 Issues regarding legacy-v5
Projects
None yet
Development

No branches or pull requests

2 participants