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

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
ratchetphp avatar

ratchetphp/Ratchet

0
View on GitHub↗
6,434 stele·791 fork-uri·PHP·MIT·7 vizualizărisocketo.me↗

Ratchet

Ratchet is a PHP library for building asynchronous WebSocket servers that handle persistent, bidirectional communication between clients and the server. It provides a complete server-side WebSocket implementation, including protocol handshake negotiation, message framing over TCP, and an event-loop-based concurrency model that manages thousands of simultaneous connections without blocking.

The library implements a connection registry pattern for tracking all active WebSocket sessions, enabling the server to broadcast or unicast messages to any connected client on demand. It relies on non-blocking I/O through libevent or stream_select, and supports installing kernel-level evented I/O handlers for maximum concurrency. For production deployment, Ratchet runs on a separate TCP port or subdomain from the main HTTP server and integrates with process supervisors like Supervisor to automatically restart the application after unexpected failures.

The project covers the full lifecycle of WebSocket server operation, from connection management and bidirectional messaging to system-level tuning for raising open connection limits. Its documentation addresses deployment alongside traditional web servers, reverse proxy integration, and the operational considerations for running persistent PHP server processes.

Features

  • WebSocket Servers - Combines an I/O server, WebSocket protocol handler, and custom logic to serve WebSocket connections.
  • Bidirectional Messaging - Provides persistent two-way messaging over WebSocket connections without request-response pairing.
  • PHP - Implements the WebSocket protocol in PHP for building real-time messaging and event-driven server applications.
  • Websocket Connection Managers - Tracks every open WebSocket connection in a single server process for on-demand client communication.
  • Real-time Communication Servers - Provides a server-side PHP solution for maintaining persistent connections and exchanging messages in real-time.
  • Asynchronous PHP Servers - Provides a non-blocking PHP server framework using ReactPHP's event loop for concurrent WebSocket connections.
  • WebSocket Frame Processors - Encodes and decodes WebSocket frames with masking, opcode handling, and fragmentation for reliable data transfer.
  • WebSocket Protocol Upgrades - Upgrades HTTP requests to persistent WebSocket connections by parsing Upgrade headers and Sec-WebSocket-Key.
  • WebSocket Connection Registries - Maintains a central map of active WebSocket connections for broadcasting or unicasting messages.
  • Non-Blocking Socket I/O - Uses libevent or stream_select to handle socket reads and writes asynchronously without blocking.
  • Non-Blocking Event Loops - Manages thousands of simultaneous connections using a single-threaded event loop that polls for I/O readiness.
  • Event and Async Programming - Builds real-time web socket applications.

Istoric stele

Graficul istoricului de stele pentru ratchetphp/ratchetGraficul istoricului de stele pentru ratchetphp/ratchet

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Alternative open-source pentru Ratchet

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Ratchet.
  • beyondcode/laravel-websocketsAvatar beyondcode

    beyondcode/laravel-websockets

    5,083Vezi pe GitHub↗

    This is a self-hosted WebSocket server for Laravel applications designed to provide real-time communication and replace third-party managed messaging services. It provides a server-side PHP implementation of the WebSocket standard, enabling full-duplex communication between clients and servers. The project implements a Pusher-compatible protocol to integrate with existing frontend client libraries. It includes a dedicated debug dashboard for monitoring active connections, tracking network traffic, and analyzing real-time server performance. The system supports Laravel event broadcasting and

    PHPhacktoberfestlaravellaravel-echo
    Vezi pe GitHub↗5,083
  • mrniko/netty-socketioAvatar mrniko

    mrniko/netty-socketio

    7,021Vezi pe GitHub↗

    netty-socketio is a Java implementation of a Socket.IO server designed for real-time bidirectional communication between clients and servers. It functions as a real-time event engine and WebSocket communication server, utilizing the Netty network framework to manage high-performance socket connections. The project enables distributed socket server scaling by acting as a distributed message broker. It synchronizes client states and broadcasts messages across multiple server nodes through the use of an external data store. The system manages traffic via namespace-based connection routing and r

    Javajavanettypolling
    Vezi pe GitHub↗7,021
  • boostorg/beastAvatar boostorg

    boostorg/beast

    4,801Vezi pe 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
    Vezi pe GitHub↗4,801
  • ithewei/libhvAvatar ithewei

    ithewei/libhv

    7,521Vezi pe GitHub↗

    libhv is a high-performance C/C++ network library and event-driven I/O framework used to build TCP, UDP, SSL, HTTP, WebSocket, and MQTT clients and servers. It provides a non-blocking event loop for managing network sockets, timers, and system signals across multiple threads. The project is distinguished by its integrated support for specialized network roles, including a full HTTP web server with RESTful routing and middleware, an MQTT messaging client for IoT communication, and the ability to implement SOCKS5 and HTTP proxies. It also features a reliable UDP implementation to ensure ordered

    Ccurlepollhttp-client
    Vezi pe GitHub↗7,521
Vezi toate cele 30 alternative pentru Ratchet→

Întrebări frecvente

Ce face ratchetphp/ratchet?

Ratchet is a PHP library for building asynchronous WebSocket servers that handle persistent, bidirectional communication between clients and the server. It provides a complete server-side WebSocket implementation, including protocol handshake negotiation, message framing over TCP, and an event-loop-based concurrency model that manages thousands of simultaneous connections without blocking.

Care sunt principalele funcționalități ale ratchetphp/ratchet?

Principalele funcționalități ale ratchetphp/ratchet sunt: WebSocket Servers, Bidirectional Messaging, PHP, Websocket Connection Managers, Real-time Communication Servers, Asynchronous PHP Servers, WebSocket Frame Processors, WebSocket Protocol Upgrades.

Care sunt câteva alternative open-source pentru ratchetphp/ratchet?

Alternativele open-source pentru ratchetphp/ratchet includ: beyondcode/laravel-websockets — This is a self-hosted WebSocket server for Laravel applications designed to provide real-time communication and… mrniko/netty-socketio — netty-socketio is a Java implementation of a Socket.IO server designed for real-time bidirectional communication… boostorg/beast — Beast is a C++ library for implementing low-level HTTP and WebSocket clients and servers. It functions as an… ithewei/libhv — libhv is a high-performance C/C++ network library and event-driven I/O framework used to build TCP, UDP, SSL, HTTP,… pallets/quart — Quart is an asynchronous Python web framework that implements the ASGI specification. It is used to build… python-websockets/websockets — websockets is a Python library that provides both client and server implementations for the WebSocket protocol,…