Skip to content

Commit

Permalink
Docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Oct 4, 2024
1 parent 9a4b71f commit 52c80ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pycrdt_websocket/yroom.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ async def serve(self, websocket: Websocket):
self._handle_exception(exception)

def local_update_awareness(self, state: bytes) -> None:
"""
Callback to broadcast the server awareness to clients.
"""
if self._task_group is not None:
self._task_group.start_soon(self._local_update_awareness, state)
else:
Expand Down

0 comments on commit 52c80ed

Please sign in to comment.