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

WSAuthException extends StoreException
in package

FinalYes

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().

Extends StoreException so existing catch (StoreException) blocks around the WS fabric keep working; catch WSAuthException specifically to map a refusal to a WS close code (WSRouter::CLOSE_FORBIDDEN) or a 403.

Table of Contents

On this page
  • Table Of Contents