feat: add reconnect to nostrclient

This commit is contained in:
Vlad Stan 2023-04-11 19:03:41 +03:00
parent 929d45bed8
commit e05b54468a
5 changed files with 52 additions and 3 deletions

View file

@ -43,6 +43,7 @@ def nostrmarket_start():
# wait for 'nostrclient' extension to initialize
await asyncio.sleep(10)
await nostr_client.run_forever()
raise ValueError("Must reconnect to websocket")
async def _wait_for_nostr_events():
# wait for this extension to initialize