Enhance OKX WebSocket client with improved task management and error handling

- Implemented enhanced task synchronization to prevent race conditions during WebSocket operations.
- Introduced reconnection locking to avoid concurrent reconnection attempts.
- Improved error handling in message processing and reconnection logic, ensuring graceful shutdown and task management.
- Added unit tests to verify the stability and reliability of the WebSocket client under concurrent operations.
This commit is contained in:
Vasily.onl
2025-06-02 23:14:04 +08:00
parent aaebd9a308
commit 01cea1d5e5
4 changed files with 414 additions and 163 deletions

View File

@@ -23,6 +23,7 @@
"orderbook"
],
"timeframes": [
"5s",
"1m",
"5m",
"15m",
@@ -42,6 +43,7 @@
"orderbook"
],
"timeframes": [
"5s",
"1m",
"5m",
"15m",