hyperliquid-dex / hyperliquid-rust-sdk

MIT License
57 stars 47 forks source link

Fix #45: Send errors as Messages over subscription sender channel #46

Closed Frixoe closed 1 month ago

Frixoe commented 1 month ago

Fixes issue #45

This allows the developer to react to any changes in the websocket connection or handle any errors received from hyperliquid. Example: Dynamically closing and opening the websocket upon errors.

Previously the errors would just get logged and the thread would continue running.

Possible an AtomicBool to start and stop the sender thread too?