Compatibility, security and tests
Compatibility and upgrades
The inspected composer.json requires PHP ^8.1 and Localzet Server ^7.0; Triangle Engine is not required. The source README says the previous constraint was Server ^4.5 and this revision targets Server 7. Upgrade Server and MultiConnect together, inspect the resolved versions in composer.lock, and test the application against the versions it actually installs. A current Server 7 branch does not establish a published MultiConnect release.
localzet/cluster is optional. The local manager works without it; constructing ClusterConnectionManager without the Cluster client autoloaded throws LogicException. CI runs the adapter integration against Cluster release API v1.0.1; locally that integration skips unless LOCALZET_CLUSTER_AUTOLOAD points to a compatible autoloader.
Security and operations
- The registry and UID/group memberships are process-local and in-memory. Restarting a worker loses them and closes its client connections; reconnection policy belongs to clients/applications.
authorizeWebSocket()returnsnullby default, so MultiConnect does not add authentication. Override the hook to check the handshake/identity, and authorize users before binding UIDs or joining groups.- Do not trust a UID, group, or broadcast command merely because it arrived over WebSocket. Validate input and authorize it in the application handler.
onClientMessage()is empty by default. Payload limits, rate limits, audit, and logging policy belong to the application and infrastructure.- Configure and protect Cluster processes and their shared secret separately, following Cluster documentation. The adapter does not start Cluster or guarantee application-level delivery.
Checks and limits
The source package defines this command:
composer test
It runs a registry/lifecycle smoke test, a loopback WebSocket integration with Server 7, the adapter contract against a stub, optional integration with a compatible Cluster autoloader, and a missing-dependency check. Actual Cluster integration checks the client API call and encoded group frame through an in-process connection double; it is not a full cross-process or cross-host delivery test. These checks do not validate production configuration, load, or failure recovery.

