Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.
API Index — Namespaces, Packages, Reports, Indices

WS

Table of Contents

Classes

CapacityException
Thrown when WSRouter's shared OpenSwoole\Table segments (ws_owner, ws_room_members) are full. App handlers catching this should respond with a clear "server at capacity" close to the WebSocket client (close code 1013 — "Try Again Later" — is the standard).
Room
A first-class WebSocket room — cluster-wide membership, presence, fan-out + handler registration. Built on the existing v0.2.40 Store + pub/sub fabric:
WSAuthException
Thrown when a WebSocket routing/room operation is refused by authorization (#234): an unauthenticated WSRouter::ownAuthenticated(), or a Room mutation (join/leave/push) denied by the registered WSRouter::roomAuthorizer().
On this page