# websocket-client/websocket-client

WebSocket client for Python

Repository: https://github.com/websocket-client/websocket-client
Canonical: https://ross.abutalabs.com/products/websocket-client
Homepage: https://websocket-client.readthedocs.io/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: websocket, websockets, websocket-client, websockets-client, python, rfc-6455
Last push: 2026-08-19T21:49:37+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 19, longevity 100
- inputs: {"age_days": 5727, "days_push": 14, "days_rel": 330, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3709, forks 774 (observed 2026-08-28T04:08:15.166493+00:00)

## What it is
websocket-client is a Python library implementing the WebSocket protocol (hybi-13 / RFC 6455) with both low-level and higher-level APIs. It supports connections over TCP and SSL, optional SOCKS/HTTP proxy usage, and automatic reconnection via the run_forever method.

## Use cases
- connect to a websocket server from python
- stream real-time data over websockets
- subscribe to a websocket api feed
- send and receive websocket messages in python
- build a websocket client with automatic reconnect
- use websockets through a socks proxy

## When to choose
- you need a mature, widely-used websocket client for Python 3.10+
- you want low-level control over websocket frames and connections
- you need proxy support or SSL websocket connections

## When to avoid
- you need permessage-deflate compression (RFC 7692 is not supported)
- you want an asyncio-native websocket client (consider the 'websockets' library)
- you need a websocket server implementation

## Facets
- artifact type: library
- maturity: stable
- function: websocket, http-client
- domain: web-development, backend, networking, developer-tools
- platform: python, cross-platform
- tags: websocket-client, rfc-6455, hybi-13, low-level-api, real-time

## Member repositories
- websocket-client/websocket-client (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:15.166493+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:30:56.556831+00:00, confidence not recorded.
  - readme: https://github.com/websocket-client/websocket-client (fetched 2026-08-28T04:08:15.166493+00:00, sha 8901173c5d97)
  - registry_pypi: https://pypi.org/pypi/websocket-client/json (fetched 2026-08-29T09:24:53.466332+00:00, sha c92432ccb09b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
