Skip to content

Commit

Permalink
fix: send disconnect signal on client removal
Browse files Browse the repository at this point in the history
  • Loading branch information
martonborzak committed Jul 24, 2023
1 parent aa236bb commit 219d33a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

PACKAGE_NAME = 'ucapi'
HERE = path.abspath(path.dirname(__file__))
VERSION = '0.0.9'
VERSION = '0.0.10'

with open(path.join(HERE, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
Expand Down
1 change: 1 addition & 0 deletions ucapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ async def _handleWs(self, websocket):
finally:
self._clients.remove(websocket)
LOG.info("WS: Client removed")
self.events.emit(uc.EVENTS.DISCONNECT)

async def _sendOkResult(self, websocket, id, msgData={}):
await self._sendResponse(websocket, id, "result", msgData, 200)
Expand Down

0 comments on commit 219d33a

Please sign in to comment.