Remove breakpoint in web_bs,
ensure we only unsub if ws is connectedsmall_kucoin_fixes
parent
a3c7bec576
commit
b14b323068
|
@ -342,15 +342,16 @@ async def stream_quotes(
|
||||||
yield
|
yield
|
||||||
|
|
||||||
# unsub
|
# unsub
|
||||||
await ws.send_msg(
|
if ws.connected():
|
||||||
{
|
await ws.send_msg(
|
||||||
"id": connect_id,
|
{
|
||||||
"type": "unsubscribe",
|
"id": connect_id,
|
||||||
"topic": f"/market/ticker:{sym}",
|
"type": "unsubscribe",
|
||||||
"privateChannel": False,
|
"topic": f"/market/ticker:{sym}",
|
||||||
"response": True,
|
"privateChannel": False,
|
||||||
}
|
"response": True,
|
||||||
)
|
}
|
||||||
|
)
|
||||||
|
|
||||||
token = await client._get_ws_token()
|
token = await client._get_ws_token()
|
||||||
async with open_autorecon_ws(
|
async with open_autorecon_ws(
|
||||||
|
|
|
@ -100,7 +100,6 @@ class NoBsWs:
|
||||||
last_err = None
|
last_err = None
|
||||||
for i in range(tries):
|
for i in range(tries):
|
||||||
try:
|
try:
|
||||||
breakpoint()
|
|
||||||
self._ws = await self._stack.enter_async_context(
|
self._ws = await self._stack.enter_async_context(
|
||||||
trio_websocket.open_websocket_url(self.url)
|
trio_websocket.open_websocket_url(self.url)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue