Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Mar 29, 2024
1 parent cbec6d4 commit 6d0b6ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exchange/_bybit_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ async def _connect_to_websocket(self):
self.ws = await websockets.connect(
self.wss,
open_timeout=None,
ping_interval=20,
ping_timeout=10,
ping_interval=30,
ping_timeout=15,
close_timeout=None,
)

await self._resubscribe()

@retry(
max_retries=13,
initial_retry_delay=3,
initial_retry_delay=1,
handled_exceptions=(
ConnectionError,
RuntimeError,
Expand All @@ -89,7 +89,7 @@ async def close(self):

@retry(
max_retries=13,
initial_retry_delay=5,
initial_retry_delay=1,
handled_exceptions=(RuntimeError, ConnectionClosedError),
)
async def receive(self, symbol, timeframe):
Expand Down

0 comments on commit 6d0b6ca

Please sign in to comment.