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 enable auto-reconnection? #19

Open
ShuiXiJin opened this issue Jul 12, 2024 · 0 comments
Open

How to enable auto-reconnection? #19

ShuiXiJin opened this issue Jul 12, 2024 · 0 comments

Comments

@ShuiXiJin
Copy link

ShuiXiJin commented Jul 12, 2024

Hi Team,

Is it possible to enable the auto-reconnection functionality in the following function? Can we please have that functionality?

  async def listen_ws():
      """
      Listens to the ws to get the updates messages.
      """
      ws_client = SpotWebsocketStreamClient(stream_url=stream_url, on_message=message_handler)
  
      ws_client.diff_book_depth(
          symbol=symbol.lower(),
          id=1,
          speed=1000
      )

Regards
PYQ

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

1 participant