Commit Graph

2 Commits

Author SHA1 Message Date
Fabian @ Blax Software 32a0a8f4cc docs(agents): add AGENTS.md source-verified reference + fix stale wsSession/install docs
- AGENTS.md: canonical agent/contributor reference — #[Websocket] attribute vs native
  Websocket\Controller, the :progress/:response/:error wire protocol,
  progress/success/error/broadcast/whisper, ws_broadcast/ws_whisper/wsSession globals,
  the fork-per-message execution model, auth()->user() over the bridge, defer() vs Jobs,
  resolver cache/restart, and a footgun checklist with a source map.
- README + docs/advanced-usage/helpers-and-testing: replace the fictional
  wsSession('channel', [...]) "auth payload" example — wsSession() takes no arguments and
  returns a per-connection store — and fix WebsocketService::getAuth($socketId) signature.
- docs/getting-started/installation: beyondcode -> blax-software composer require.
2026-06-30 10:56:25 +02:00
Fabian @ Blax Software 093bbe3a44 A tests, documentation for helpers and lifecycle
- Introduced `helpers-and-testing.md` to document global helpers and WebsocketService class usage.
- Created `HandlerLifecycleTest.php` to test the full WebSocket handler lifecycle, including connection management, channel subscriptions, and message routing.
- Added `WebsocketServiceTest.php` to validate state tracking methods in WebsocketService, covering user authentication, channel tracking, and broadcast functionality.
2026-04-02 12:44:16 +02:00