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

Is there a way to simulate a lost connection? #168

Open
ElectricCoffee opened this issue Jan 5, 2024 · 2 comments
Open

Is there a way to simulate a lost connection? #168

ElectricCoffee opened this issue Jan 5, 2024 · 2 comments

Comments

@ElectricCoffee
Copy link

I can see that the library supports close and error, one of which gracefully shuts down the connection, and the other which sends an error message; but I want to simulate the connection abruptly and ungracefully being lost (running out of data, losing wifi, ethernet unplugged, etc). How would I go about doing that?

@davidmoshal
Copy link

+1

@Adesin-fr
Copy link

Anyone found a way to do so?

I'm trying to write a test that ensure my client correctly reconnects...

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

No branches or pull requests

3 participants