Search by

localzet / socket

localzet

A Socket.IO server implementation for Localzet Server.

Package info

github.com/localzet/SocketIO

pkg:composer/localzet/socket

Fund package maintenance!

localzet

Statistics

Installs: 32

Dependents: 0

Suggesters: 0

Stars: 24

Open Issues: 1

v2.0.1 2026-11-12 01:03 UTC

This package is auto-updated.

Last update: 2026-11-12 01:03:48 UTC


README

Русская документация

A Socket.IO server implementation for Localzet Server.

Status and compatibility

The development branch targets Localzet Server 7. The default in-memory adapter works without Tunnel. Cross-process broadcasts use the optional Tunnel ChannelAdapter, compatible with Tunnel 3.x. The global Emitter class is included through an explicit Composer classmap. Integration tests cover Engine.IO polling, WebSocket handshakes, namespace connections, event echo and a broadcast across two Socket.IO processes through a live Tunnel broker.

This is a breaking release line for Server 7. Applications on Server 4 must stay on a compatible SocketIO release.

Dependencies

  • php: >=8.1
  • localzet/server: ^7.0
  • localzet/tunnel: optional at runtime; required for cross-process ChannelAdapter. Version ^3.0 targets Server 7.

Installation

composer config repositories.localzet-socketio vcs https://github.com/localzet/SocketIO
composer require localzet/socketio:dev-main

The package is not published on Packagist yet; this VCS source installs the current Server 7 branch.

Development checks

composer validate --strict
composer install
composer dump-autoload --optimize --strict-psr
composer lint
composer test
composer test:integration
composer audit --abandoned=report

Installation, lint and autoload checks do not establish end-to-end behavior or production readiness.

The cross-process test starts one Tunnel broker and two independent Socket.IO server processes, connects a client to each server, and verifies that a broadcast from the first reaches the second. It does not cover broker failover, persistence, authentication or delivery during network interruption.

Historical usage notes need verification against the current API.

Author and license

Ivan Zorin (localzet), creator@localzet.com, https://www.localzet.com. Source: https://github.com/localzet/SocketIO. AGPL-3.0-or-later; LICENSE. Original copyright and third-party licenses remain applicable.

Authors · Contributing · Security