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

How to get notified of disconnect / connection close #89

Open
muety opened this issue Jun 1, 2021 · 1 comment
Open

How to get notified of disconnect / connection close #89

muety opened this issue Jun 1, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@muety
Copy link

muety commented Jun 1, 2021

Is there some way of getting notified once the plug is pulled out?

@tresf
Copy link

tresf commented Jun 1, 2021

Are you talking about a USB adapter plug? That might be possible utilizing some additional logic such as that proposed in #69 which aims to query some of the lower-level USB information. Until that's implemented, listening for a timeout exception may be the only viable sign. Note, USB information wasn't originally part of the purpose of this library but as USB-Serial adapters become the norm, I find it to be only natural that the library should be enhanced to make the experience with them better.

Furthemore, this is a rarely updated open source library, so feel free to begin the code yourself and issue us a pull request with the requested changes if you need to move this along faster. 🍻

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

No branches or pull requests

2 participants