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

[FeatureRequest]: long live connection support #16

Open
chernogorsky opened this issue May 3, 2022 · 0 comments
Open

[FeatureRequest]: long live connection support #16

chernogorsky opened this issue May 3, 2022 · 0 comments
Assignees

Comments

@chernogorsky
Copy link

Is your feature request related to a problem? Please describe.

Im working on a plugin, which requires long live connection, and experience a lot of natural disconnections:
Plugin works on SBC
Main system may and will be reset without reset/reboot SBC

It'll be good if we have some tools to check the connection status,
like is_connected method

Describe the solution you propose.

Have somethihng like

class BaseConnection:
def is_connected()->bool:
return connection->current_status

Describe alternatives you've considered

At the moment I workaround it with try except, but it mess the code
Another possible workaround - is open/close connection per every command/request, which may be resource consuming operation

Provide any additional context or information.

Ex. Photos, mockups, etc.

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

2 participants