subscriptions: make generate sub_id more unique

This commit is contained in:
Jacob Plaster
2019-01-24 13:52:01 +00:00
committed by Jacob Plaster
parent afbb4a670c
commit 3eb02910d2
4 changed files with 20 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ class GenericWebsocket:
async def _connect(self, host):
async with websockets.connect(host) as websocket:
self.ws = websocket
self.logger.info("Wesocket connected to {}".format(self.host))
self.logger.info("Wesocket connected to {}".format(host))
while True:
await asyncio.sleep(0)
message = await websocket.recv()