websockets 11.0.3


An implementation of the WebSocket Protocol (RFC 6455 & 7692)

An implementation of the WebSocket Protocol (RFC 6455 & 7692)

Stars: 4637, Watchers: 4637, Forks: 494, Open Issues: 29

The python-websockets/websockets repo was created 10 years ago and the last code push was 2 weeks ago.
The project is very popular with an impressive 4637 github stars!

How to Install websockets

You can install websockets using pip

pip install websockets

or add it to a project with poetry

poetry add websockets

Package Details

GitHub Repo


No  websockets  pypi packages just yet.


A list of common websockets errors.

Code Examples

Here are some websockets code examples and snippets.

GitHub Issues

The websockets package has 29 open issues on GitHub

  • 'websockets' has no attribute 'client'
  • Sequential client sends hanging in Python > 3.7 on Windows?
  • OSError: [Errno 107] Transport endpoint is not connected
  • Concurrernt write causes data corruption
  • Trying to connect creates file descriptors and doesn't free them
  • Digest Authentification support for the legacy client part only
  • Possible incompatibility with
  • No permessage-deflate header in response for Firefox
  • won't raise a ConnectionClosedError when the connection is closed by force
  • 10.1: sphinx warnings
  • Add option to disable ipv6 socket
  • How can I send message to a specific client

See more issues on GitHub

Related Packages & Articles

shopyo 4.8.6

Highly modular web framework built for big apps on top of Flask with Django advantages

testcontainers 3.7.1

Library provides lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container