Overview of websockets
mainwebsockets is a Python library for building WebSocket servers and clients. It focuses on correctness (RFC 6455 compliance), simplicity, robustness, and performance.
It provides multiple implementation styles:
- asyncio API: The default implementation using Python's standard asynchronous I/O framework, providing an elegant coroutine-based API.
- threading API: A synchronous implementation built on top of
threading. - Sans-I/O implementation: An implementation that does not perform I/O itself, allowing for integration with custom I/O loops.