WebSocket implementation in Python 3
Python Other
Latest commit 2466e74 Dec 9, 2016 @RemiCardona RemiCardona server: don't print exceptions for network errors during opening and …
…closing handshakes

Since 181acf3, full tracebacks are printed if a connection is reset
during handshake.  Connection resets are to be expected, even in
controlled environments.  Simply log them as info rather than warning,
and don't print a full traceback.

Closes #126.



websockets is a library for developing WebSocket servers and clients in Python. It implements RFC 6455 with a focus on correctness and simplicity. It passes the Autobahn Testsuite.

Built on top of Python's asynchronous I/O support introduced in PEP 3156, it provides an API based on coroutines, making it easy to write highly concurrent applications.

Installation is as simple as pip install websockets. It requires Python ≥ 3.4 or Python 3.3 with the asyncio module, which is available with pip install asyncio.

Documentation is available on Read the Docs.

Bug reports, patches and suggestions welcome! Just open an issue or send a pull request.