Remove breakpoint in web_bs,

ensure we only unsub if ws is connected
emit_clear_ticks_only_on_ts_change
jaredgoldman 2023-03-15 20:26:51 -04:00
parent 2d3c351ca4
commit afa68d2d59
2 changed files with 10 additions and 10 deletions

View File

@ -342,15 +342,16 @@ async def stream_quotes(
yield
# unsub
await ws.send_msg(
{
"id": connect_id,
"type": "unsubscribe",
"topic": f"/market/ticker:{sym}",
"privateChannel": False,
"response": True,
}
)
if ws.connected():
await ws.send_msg(
{
"id": connect_id,
"type": "unsubscribe",
"topic": f"/market/ticker:{sym}",
"privateChannel": False,
"response": True,
}
)
token = await client._get_ws_token()
async with open_autorecon_ws(

View File

@ -100,7 +100,6 @@ class NoBsWs:
last_err = None
for i in range(tries):
try:
breakpoint()
self._ws = await self._stack.enter_async_context(
trio_websocket.open_websocket_url(self.url)
)