From 5411d4d526ab74cc488eeefed653f4d10f7e739d Mon Sep 17 00:00:00 2001 From: Nicolas Brichet Date: Fri, 4 Oct 2024 10:03:49 +0200 Subject: [PATCH] Docstring --- pycrdt_websocket/yroom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pycrdt_websocket/yroom.py b/pycrdt_websocket/yroom.py index 9320c66..42f575f 100644 --- a/pycrdt_websocket/yroom.py +++ b/pycrdt_websocket/yroom.py @@ -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: