Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Oct 21, 2020
2 parents 411be9e + 3bdffb6 commit 3cd47cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions barcode_server/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,8 @@ async def on_barcode(self, device: InputDevice, barcode: str):
async def _notify_websocket_clients(self, device, barcode):
for client in self.clients:
json = barcode_event_to_json(device, barcode)
asyncio.create_task(client.send_str(json))
LOGGER.debug(f"Notified {client.remote_address}")
asyncio.create_task(client.send_bytes(json))
# TODO: cant log this here because we don't have access
# to an unique identifier anymore, maybe we need to store one manually
# when the websocket is connected initially...
# LOGGER.debug(f"Notified {client.remote_address}")

0 comments on commit 3cd47cd

Please sign in to comment.