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

The aiohttp and websocket connections do not get closed properly #335

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

btschwertfeger
Copy link
Owner

@btschwertfeger btschwertfeger commented Jan 7, 2025

When using any websocket client from this SDK and terminating sessions, e.g. by getting out of scope, deleting, interrupting, etc... the sessions will not be closed properly, except for the case one is awaiting self.stop() and self.async_close() which is kinda ugly. In order to address this, awaiting self.close() should be sufficient.

TODO:

  • Continue testing
  • Update examples
  • Update docstrings

@btschwertfeger btschwertfeger self-assigned this Jan 7, 2025
@btschwertfeger btschwertfeger added Futures Topic related to Futures trading Spot Topic related to Spot trading Breaking Breaking changes labels Jan 7, 2025
@btschwertfeger btschwertfeger added this to the Upcoming Release milestone Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Breaking changes Futures Topic related to Futures trading Spot Topic related to Spot trading
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant