Skip to content

Exposed reconnect parameter for ws.run_forever() for a Websocket.#255

Open
mifth wants to merge 4 commits into
hyperliquid-dex:masterfrom
mifth:master
Open

Exposed reconnect parameter for ws.run_forever() for a Websocket.#255
mifth wants to merge 4 commits into
hyperliquid-dex:masterfrom
mifth:master

Conversation

@mifth

@mifth mifth commented Dec 19, 2025

Copy link
Copy Markdown

Hi, ws.run_forever() has a very important reconnect parameter which allows to auto-reconnect. I've exposed it to the Info. It allows to have no disconnections.
For example, ws.run_forever(reconnect=5) will be reconnecting every 5 seconds when a connection was lost. I had a chance to have no disconnections during 2 days.

@mifth

mifth commented Dec 19, 2025

Copy link
Copy Markdown
Author

Some discussion was here: #191 (comment)

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

Successfully merging this pull request may close these issues.

1 participant