awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
websocket-client avatar

websocket-client/websocket-client

0
View on GitHub↗
3,706 estrellas·777 forks·Python·Apache-2.0·3 vistaswebsocket-client.readthedocs.io↗

Websocket Client

This is a Python WebSocket client library designed to establish full-duplex, persistent network connections for real-time exchange of text and binary data. It functions as an asynchronous network client and a TCP socket wrapper, managing the complete lifecycle of a connection from the initial handshake to graceful closure.

The implementation includes a secure WebSocket client that handles SSL/TLS encryption, certificate verification, and secure handshake protocols. It further distinguishes itself by supporting advanced connectivity options, including proxy routing via HTTP or SOCKS proxies and the integration of custom Unix domain sockets.

The library provides broad capabilities for connection management, including heartbeat monitoring through ping and pong frames to detect timeouts and thread-safe session handling to prevent data corruption. It also includes tools for connection traffic tracing, custom frame masking, and the ability to configure specific handshake headers and subprotocols.

Features

  • Persistent Full-Duplex Connections - Establishes persistent, bidirectional communication links for simultaneous two-way data exchange between client and server.
  • WebSocket Clients - Provides a full-duplex Python library for establishing and managing bidirectional WebSocket connections over HTTP.
  • Asynchronous Network Clients - Functions as a non-blocking network client utilizing event loops for concurrent data transmission.
  • Websocket Connection Managers - Manages the full WebSocket lifecycle including connection establishment, heartbeat maintenance, and graceful closure.
  • Data Framing - Packages text and binary payloads into discrete binary frames for network transmission according to the WebSocket protocol.
  • Connection Lifecycle Managers - Manages the full state transition sequence of opening, transmitting, and closing persistent network connections.
  • WebSocket Message Exchanges - Provides bidirectional transmission of text and binary frames over persistent WebSocket connections.
  • WebSocket Connection Establishment - Handles the initial HTTP upgrade handshake to establish a real-time persistent WebSocket connection.
  • Secure Connection Handlers - Manages secure connection layers including TLS encryption, hostname verification, and certificate validation.
  • WebSocket Security - Implements security controls for persistent WebSocket connections including SSL/TLS encryption and certificate verification.
  • Thread-Safe Client Handling - Ensures thread safety and prevents race conditions when multiple threads interact with the WebSocket client.
  • Connection Control Frame Handlers - Manages protocol-level control frames and specifies opcodes to distinguish between text, binary, and control payloads.
  • Connection Maintenance Loops - Runs a continuous execution loop to monitor network health and handle automatic reconnections for persistent sessions.
  • Connection Closures - Provides mechanisms to gracefully shut down the WebSocket transport stream using specific status codes.
  • Connection Managers - Uses an asynchronous dispatcher to manage several active network socket sessions within a single process.
  • Unix Socket Connections - Supports establishing direct network connections using Unix domain sockets via filesystem paths.
  • Incoming Message Processors - Dispatches received server messages to specific application handlers using custom subprotocols.
  • WebSocket Proxy Routings - Routes WebSocket traffic through HTTP or SOCKS proxies to bypass network restrictions.
  • Python Network Stacks - Provides a network communication implementation built using Python sockets for handling WebSocket traffic.
  • Socket Abstractions - Provides a socket abstraction layer that supports custom IP addresses and Unix domain sockets.
  • Socket Wrappers - Wraps standard network sockets to support Unix domain sockets and routing via HTTP or SOCKS proxies.
  • Heartbeat Frames - Employs periodic application-level ping and pong frames to detect timeouts and maintain active network links.
  • Thread-Safe Connection Sessions - Uses locking mechanisms to prevent data corruption when multiple threads interact with a single network connection.
  • Callback-Based Event Dispatchers - Implements an event-driven dispatcher that routes incoming WebSocket protocol events to application-defined callback functions.
  • Connection Configurators - Allows defining protocol-level settings such as handshake headers, subprotocols, and timeout values.

Historial de estrellas

Gráfico del historial de estrellas de websocket-client/websocket-clientGráfico del historial de estrellas de websocket-client/websocket-client

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Preguntas frecuentes

¿Qué hace websocket-client/websocket-client?

This is a Python WebSocket client library designed to establish full-duplex, persistent network connections for real-time exchange of text and binary data. It functions as an asynchronous network client and a TCP socket wrapper, managing the complete lifecycle of a connection from the initial handshake to graceful closure.

¿Cuáles son las características principales de websocket-client/websocket-client?

Las características principales de websocket-client/websocket-client son: Persistent Full-Duplex Connections, WebSocket Clients, Asynchronous Network Clients, Websocket Connection Managers, Data Framing, Connection Lifecycle Managers, WebSocket Message Exchanges, WebSocket Connection Establishment.

¿Qué alternativas de código abierto existen para websocket-client/websocket-client?

Las alternativas de código abierto para websocket-client/websocket-client incluyen: boostorg/beast — Beast is a C++ library for implementing low-level HTTP and WebSocket clients and servers. It functions as an… coder/websocket — This is a minimal WebSocket library for Go designed for bidirectional real-time communication. It serves as a network… daltoniam/starscream — Starscream is a Swift WebSocket client library that provides a concrete implementation of the WebSocket protocol for… websockets/ws — This project is a Node.js WebSocket library that provides a high-performance client and server implementation for the… vi/websocat — Websocat is a specialized set of command-line tools for WebSocket communication, acting as a client, server, and… yhirose/cpp-httplib — This is a header-only C++ library that provides implementations for HTTP clients, HTTP servers, and a WebSocket…

Alternativas open-source a Websocket Client

Proyectos open-source similares, clasificados según cuántas características comparten con Websocket Client.
  • boostorg/beastAvatar de boostorg

    boostorg/beast

    4,801Ver en GitHub↗

    Beast is a C++ library for implementing low-level HTTP and WebSocket clients and servers. It functions as an asynchronous networking framework designed to compose non-blocking I/O operations and layered stream stacks for managing concurrent network traffic, specifically utilizing the Boost.Asio asynchronous model. The library provides a comprehensive implementation of the HTTP/1.1 and WebSocket protocols. For HTTP, it includes primitives for parsing and serializing messages with support for chunked transfer encoding, incremental body reading, and request pipelining. Its WebSocket implementati

    C++asioasync-programmingboost
    Ver en GitHub↗4,801
  • coder/websocketAvatar de coder

    coder/websocket

    5,299Ver en GitHub↗

    This is a minimal WebSocket library for Go designed for bidirectional real-time communication. It serves as a network protocol implementation for managing handshakes, frame masking, and control signals to enable the exchange of text and binary messages over persistent connections. The library distinguishes itself by providing a connectivity layer that wraps browser WebSocket APIs for applications compiled to WebAssembly. It also functions as data compression middleware, utilizing deflate compression to reduce bandwidth usage for transmitted messages. The project covers a broad range of netwo

    Gogohttp2idiomatic
    Ver en GitHub↗5,299
  • daltoniam/starscreamAvatar de daltoniam

    daltoniam/Starscream

    8,639Ver en GitHub↗

    Starscream is a Swift WebSocket client library that provides a concrete implementation of the WebSocket protocol for iOS and macOS applications. It functions as an event-driven wrapper for establishing and managing bidirectional connections to send and receive text and binary frames over TCP. The library includes a secure WebSocket client capable of encrypting traffic and validating server identities. It manages the full connection lifecycle, from the initial handshake and header exchange to session termination with custom close codes. The project covers a broad range of networking capabilit

    Swift
    Ver en GitHub↗8,639
  • websockets/wsAvatar de websockets

    websockets/ws

    22,768Ver en GitHub↗

    This project is a Node.js WebSocket library that provides a high-performance client and server implementation for the WebSocket protocol. It functions as a transport layer for real-time bidirectional communication, supporting both UTF-8 strings and binary data transport through the use of TCP socket wrappers. The library enables the creation of WebSocket servers that manage full-duplex connections and broadcast messages to multiple clients, as well as WebSocket clients that establish persistent links to remote servers. It handles the protocol upgrade process via TCP-based handshake negotiatio

    JavaScript
    Ver en GitHub↗22,768
  • Ver las 30 alternativas a Websocket Client→