wsaccel is a Python library that provides a WebSocket accelerator for `ws4py` and `AutobahnPython`. It replaces per-byte processing in these libraries with a faster Cython implementation, primarily for UTF-8 validation and payload masking. The project is currently at version 0.6.7, but its maintainer has indicated that it will cease active development due to its dependencies (ws4py and AutobahnPython) no longer being actively maintained. Users are advised to migrate to more actively supported WebSocket libraries like Tornado or websockets.
pip install wsaccelVerified import paths — ran on the pinned version, not inferred.
After installing `wsaccel`, it typically needs to be explicitly patched into `AutobahnPython` or `ws4py` to provide acceleration. For `websocket-client`, `wsaccel` is automatically used if present. The patching calls should be made before the target library processes WebSocket frames.
Plan to refactor your application to use a different WebSocket library (e.g., `websockets` or `Tornado`).
Consider using Python versions <= 3.9 if `wsaccel` is strictly necessary, or, preferably, migrate to an actively maintained WebSocket library that is compatible with newer Python versions.
Ensure that `ws4py`, `AutobahnPython`, or `websocket-client` are installed alongside `wsaccel`, and for `ws4py`/`AutobahnPython`, apply the `patch_*()` calls as shown in the quickstart.