awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
websocket-client avatar

websocket-client/websocket-client

0
View on GitHub↗
3,706 stars·777 forks·Python·Apache-2.0·2 vueswebsocket-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.

Historique des stars

Graphique de l'historique des stars pour websocket-client/websocket-clientGraphique de l'historique des stars pour websocket-client/websocket-client

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Websocket Client

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Websocket Client.
  • boostorg/beastAvatar de boostorg

    boostorg/beast

    4,801Voir sur 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
    Voir sur GitHub↗4,801
  • coder/websocketAvatar de coder

    coder/websocket

    5,299Voir sur 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
    Voir sur GitHub↗5,299
  • daltoniam/starscreamAvatar de daltoniam

    daltoniam/Starscream

    8,639Voir sur 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
    Voir sur GitHub↗8,639
  • websockets/wsAvatar de websockets

    websockets/ws

    22,768Voir sur 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
    Voir sur GitHub↗22,768
Voir les 30 alternatives à Websocket Client→

Questions fréquentes

Que fait 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.

Quelles sont les fonctionnalités principales de websocket-client/websocket-client ?

Les fonctionnalités principales de websocket-client/websocket-client sont : Persistent Full-Duplex Connections, WebSocket Clients, Asynchronous Network Clients, Websocket Connection Managers, Data Framing, Connection Lifecycle Managers, WebSocket Message Exchanges, WebSocket Connection Establishment.

Quelles sont les alternatives open-source à websocket-client/websocket-client ?

Les alternatives open-source à websocket-client/websocket-client incluent : 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…