Skip to content

How to enable auto-reconnection? #19

@ShuiXiJin

Description

@ShuiXiJin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions