awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
python-websockets avatar

python-websockets/websockets

0
View on GitHub↗
5,692 stars·593 forks·Python·BSD-3-Clause·12 viewswebsockets.readthedocs.io↗

Websockets

websockets is a Python library that provides both client and server implementations for the WebSocket protocol, enabling real-time, bidirectional communication between applications. At its core, it offers the fundamental primitives for establishing persistent connections, managing their lifecycles, and exchanging text or binary messages asynchronously using coroutines.

The library distinguishes itself through comprehensive support for various messaging patterns, including broadcast messaging to all connected clients, targeted messaging to specific clients, and shared application state synchronization across multiple connections. It also includes a command-line interactive client for testing and debugging WebSocket endpoints directly from the terminal.

Beyond the core protocol implementation, websockets provides production deployment guidance across multiple platforms and environments, including Kubernetes, Fly.io, Heroku, and Koyeb, as well as configurations for reverse proxies like HAProxy and process managers like Supervisor. The documentation covers TLS setup, load balancing, and other production considerations for running WebSocket servers reliably.

Features

  • WebSocket Servers - Provides a server-side implementation for starting a WebSocket listener and handling messages asynchronously using coroutines.
  • Broadcast Messaging - Supports sending a message from the server to every currently connected WebSocket client simultaneously.
  • Websocket Connection Managers - Handles WebSocket connection lifecycle including opening, closing, and error recovery to keep application code simple.
  • Real-Time Connections - Establishes persistent bidirectional connections between servers and clients for real-time message exchange.
  • Text and Binary Message Exchanges - Enables bidirectional transmission of both UTF-8 text and raw binary messages over open WebSocket connections.
  • WebSocket Clients - Provides client-side functionality to initiate WebSocket connections and exchange messages bidirectionally with remote servers.
  • WebSocket Message Interception - Enables sending and receiving text or binary messages through an open WebSocket connection in either direction.
  • WebSocket Deployments - Provides guidance for packaging and deploying a WebSocket server with its frontend to a production web environment.
  • WebSocket Reverse Proxy Deployments - Documents how to route WebSocket traffic through a reverse proxy by translating the Upgrade handshake and forwarding frames.
  • Production Configurations - Provides comprehensive production deployment guidance including TLS, reverse proxies, and process management for WebSocket servers.
  • Targeted WebSocket Messaging - Supports directing messages from the server to a particular connected client using a routing key or identifier.
  • WebSocket Terminal Clients - Ships a command-line interactive client for testing and debugging WebSocket endpoints directly from the terminal.
  • WebSocket State Synchronization - Synchronizes application state across multiple WebSocket connections to support collaborative features.
  • Websockets - Listed in the “Websockets” section of the Awesome Python awesome list.
  • WebSocket - A library for building WebSocket servers and clients.

Star history

Star history chart for python-websockets/websocketsStar history chart for python-websockets/websockets

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Websockets

These projects share indexed features with Websockets. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • aaugustin/websocketsaaugustin avatar

    aaugustin/websockets

    5,692View on GitHub↗

    websockets is a Python library for building WebSocket servers and clients using coroutines and the asyncio framework. It provides a complete toolkit for creating production-ready WebSocket applications, including a coroutine-based framework for handling connections, messages, and lifecycle events, as well as a client library for opening persistent bidirectional connections to remote endpoints. The library manages the full lifecycle of WebSocket connections, including handshake, message exchange, and graceful closure, with support for path-based routing to organize server logic across multiple

    Python
    View on GitHub↗5,692
  • partykit/partykitpartykit avatar

    partykit/partykit

    5,644View on GitHub↗

    PartyKit is a serverless WebSocket backend platform for building real-time multiplayer applications. It provides a globally distributed edge computing runtime that runs stateful server code close to users, with automatic scaling and hibernation for idle rooms. The platform handles WebSocket connections, HTTP requests, and durable storage without requiring infrastructure management, and includes a client and server SDK with hooks, storage, and Yjs integration for building collaborative features. The platform distinguishes itself through per-room isolation using Durable Objects, where each uniq

    TypeScriptbackendscollaborationcrdts
    View on GitHub↗5,644
  • olahol/melodyolahol avatar

    olahol/melody

    4,066View on GitHub↗

    Melody is a WebSocket server framework designed to upgrade HTTP connections into bidirectional streams. It functions as a session manager and binary streaming library that facilitates real-time data exchange between a server and multiple remote clients. The project features a broadcast engine that optimizes multi-client transmissions through wire-representation caching. It includes a dedicated session management system for attaching custom state to persistent network connections and an upgrade handler that validates handshake headers. The framework covers broad capability areas including eve

    Goexampleframeworkgo
    View on GitHub↗4,066
  • vi/websocatvi avatar

    vi/websocat

    8,571View on GitHub↗

    Websocat is a specialized set of command-line tools for WebSocket communication, acting as a client, server, and stream processor. It provides a terminal-based interface for connecting to WebSocket servers, hosting secure WebSocket servers, and bridging data between WebSockets and other network transports. The project distinguishes itself by functioning as a bidirectional network relay, allowing the routing of data between WebSocket streams, TCP sockets, UNIX sockets, and standard system input and output. It includes specialized implementations for SOCKS5 and HTTP proxying, as well as a strea

    Rustclicommand-linecommand-line-tool
    View on GitHub↗8,571
Compare all 30 related projects→

Frequently asked questions

What does python-websockets/websockets do?

websockets is a Python library that provides both client and server implementations for the WebSocket protocol, enabling real-time, bidirectional communication between applications. At its core, it offers the fundamental primitives for establishing persistent connections, managing their lifecycles, and exchanging text or binary messages asynchronously using coroutines.

What are the main features of python-websockets/websockets?

The main features of python-websockets/websockets are: WebSocket Servers, Broadcast Messaging, Websocket Connection Managers, Real-Time Connections, Text and Binary Message Exchanges, WebSocket Clients, WebSocket Message Interception, WebSocket Deployments.

Which projects share features with python-websockets/websockets?

Projects with overlapping indexed features include: aaugustin/websockets — websockets is a Python library for building WebSocket servers and clients using coroutines and the asyncio framework.… partykit/partykit — PartyKit is a serverless WebSocket backend platform for building real-time multiplayer applications. It provides a… olahol/melody — Melody is a WebSocket server framework designed to upgrade HTTP connections into bidirectional streams. It functions… vi/websocat — Websocat is a specialized set of command-line tools for WebSocket communication, acting as a client, server, and… boostorg/beast — Beast is a C++ library for implementing low-level HTTP and WebSocket clients and servers. It functions as an… websockets/ws — This project is a Node.js WebSocket library that provides a high-performance client and server implementation for the…