Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Broadcast server awareness to all clients (#73)
* Add methods to modify the awareness server side, server being a regular user * Server can subscribe to awareness changes (only those from the frontend) * mypy * Add tests * ruff and mypy * Avoid depending on nest_asyncio * Use the YRoom task group for asyncrhonous call * Remove the Awareness object in favor of a futur one in pycrdt * Apply suggestions from code review Co-authored-by: David Brochart <[email protected]> * Log an error if the task group is not initialized * Update pycrdt_websocket/yroom.py Co-authored-by: David Brochart <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Remove the logger in the Awareness args * Docstring * Update to pycrdt 0.10 and observe the awareness changes to broadcast local changes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * mypy * Apply suggestions Co-authored-by: David Brochart <[email protected]> * Broadcast the changes only if the state actually changes * Apply suggestions from code review Co-authored-by: David Brochart <[email protected]> * Broadcast all updates Co-authored-by: David Brochart <[email protected]> * Update pyproject.toml Co-authored-by: David Brochart <[email protected]> --------- Co-authored-by: David Brochart <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: David Brochart <[email protected]>
- Loading branch information