Every message carries the bearer token as data.authtoken. When a handler
threw, Controller::controll_message logged the whole message data with
Log::error (and Log::info for validation failures), so the token landed in
the app's logs and, through Laravel's log breadcrumbs, in Sentry/GlitchTip.
The data is now logged without authtoken. Additive: nothing else changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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.