Commit Graph

93 Commits

Author SHA1 Message Date
Fabian @ Blax Software a46243a706 F IdentityFormatter contract — apps override how the User column renders
websockets:watch -v now delegates User-column rendering to a bound
IdentityFormatter. The package ships DefaultIdentityFormatter which
produces #<id> - <name> | <username> - <email> for typical Eloquent users
(any field absent = that segment dropped). Apps with non-User auth
subjects (Company, ApiClient, multi-tenant blobs) can implement the
contract and either bind it in their service provider or name it in
config/websockets.php as 'identity_formatter'. Resolution order is:
explicit container binding > config class > package default.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 13:50:22 +02:00
Fabian @ Blax Software 2ad8d490b7 fix: harden IPC callbacks and decouple auth lookup via configurable resolver 2026-04-17 11:03:02 +02:00
Fabian @ Blax Software 9e7c2575f6 feat: WS introspection - list controllers and methods for debugging
- Send 'websocket' to list all controllers with methods and metadata
- Send 'auth' to list all methods on AuthController
- Shows need_auth, lifecycle hooks (boot/booted/unboot) per controller
- Only enabled in local env or via WEBSOCKET_INTROSPECTION=true
- Never active in production unless explicitly enabled
2026-04-16 09:02: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
Fabian @ Blax Software 7dd2df48d1 I DB connecting & auth handling 2026-03-23 14:13:30 +01:00
Fabian @ Blax Software 35b2731349 I max concurrency handling, BF restart 2026-03-20 13:44:51 +01:00
Fabian @ Blax Software 826c198a77 IA helpers 2026-02-03 15:03:50 +01:00
Fabian @ Blax Software 986ce76fb7 IA hotreloads 2026-02-02 13:20:39 +01:00
Fabian @ Blax Software 935bfb28d3 A hotreload 2026-01-26 10:51:13 +01:00
a6a2f5842 6f115a2a72 A more default settings 2025-05-08 10:54:11 +02:00
Alexander Blasl 3bb4cbab33 BF handler in config 2025-01-16 15:56:28 +01:00
Alexander Blasl 9129c517b5 Publishable 2025-01-16 15:29:58 +01:00
Alexander Blasl 1a5db82c26 Renovation 2025-01-16 08:54:02 +01:00
Marcel Pociot fb958fb851
Merge 2.x changes (#1043)
* Resolve conflicts

* Apply fixes from StyleCI (#1042)
2022-10-06 13:46:54 +02:00
rennokki 3ff362f977
Added trailing comma 2021-01-23 16:41:41 +02:00
Marek Mahansky c838ba8e39 Customize dashboard domain and path using env vars 2021-01-23 14:34:48 +00:00
Nathan Rzepecki 8f2ec97d16 Fix spelling mistake 2020-09-30 11:33:46 +08:00
Nathan Rzepecki b6f2ce0f7c Fix spelling mistake 2020-09-30 11:33:16 +08:00
Alex Renoki c1bef4db5b Added async redis connection 2020-09-25 22:16:06 +03:00
Alex Renoki 5cb2ee9fce Run promises one-after-another 2020-09-19 14:16:26 +03:00
Alex Renoki 1ec637fb51 Added healthcheck controller 2020-09-12 23:48:18 +03:00
Alex Renoki 6f32b89459 wip 2020-09-10 22:59:26 +03:00
Alex Renoki fadb3fc123 Added redis connection counter. 2020-09-03 16:31:19 +03:00
Alex Renoki 9938cf6ae2 Moved the statistics logger to the replication driver 2020-09-03 06:59:01 +03:00
Alex Renoki 3e239a0728 Added custom handlers for all registered routes. 2020-09-02 11:57:52 +03:00
Alex Renoki 0dfa682c97 Revert "Moved all websockets testing related stuff into a concern"
This reverts commit aa014add21.
2020-08-31 11:06:14 +03:00
Alex Renoki 5b6bdf49e4 Added configurable client for each replication driver. 2020-08-28 19:44:54 +03:00
Alex Renoki 68a3a74dfa Added docs 2020-08-27 22:18:27 +03:00
rennokki a08eee60e1
Merge pull request #475 from beyondcode/fix/memory-leaks
[fix] Memory Leaks
2020-08-21 15:27:10 +03:00
Nathan Rzepecki 91c24c30e8 Add some extra ENV variables for the config file 2020-08-21 10:39:58 +08:00
Alex Renoki 99b55411c1 Removed controller that sends out the statistics 2020-08-19 22:39:38 +03:00
Alex Renoki 3123f25cbc Renamed HttpStatisticsLogger with MemoryStatisticsLogger (because it stores it in-memory) 2020-08-19 09:00:53 +03:00
Alex Renoki 3e521268d4 Added customizable driver for the store 2020-08-18 21:22:29 +03:00
Alex Renoki 11727e684f Added cors setting outside the app 2020-08-18 16:04:52 +03:00
rennokki b174ffb6e7
Merge pull request #467 from beyondcode/refactor/dashboard
[2.x] Refactoring dashboard
2020-08-18 09:44:18 +03:00
Alex Renoki 09776a1828 Refactored the statistics logger 2020-08-17 21:17:00 +03:00
Alex Renoki 13978cb824 Added extension for the websocket handler 2020-08-17 13:25:01 +03:00
Alex Renoki 51f84e3c40 set up tests 2020-08-13 16:18:14 +03:00
rennokki edcecff9af
Merge branch 'master' into 2.x 2020-08-13 15:25:03 +03:00
Alex Renoki 099d90b885 Renamed AppProvider to AppManager 2020-08-13 14:51:18 +03:00
Alex Renoki 679a8d097a Fixed logger 2020-08-13 14:40:19 +03:00
rennokki ce84e8cc9f
wip 2020-08-13 13:55:28 +03:00
rennokki 3a0bcead19
wip 2020-08-13 13:53:08 +03:00
rennokki 1bfbbdb558
Merge branch '2.x' into redis-replication 2020-08-13 13:51:26 +03:00
Alex Renoki 8c393c76c3 wip 2020-08-13 13:34:12 +03:00
Alex Renoki 765e772d76 wip 2020-08-13 13:22:58 +03:00
Alex Renoki 5e0ec9e6a1 Added defined http logger class in the config 2020-08-13 10:15:52 +03:00
rennokki b2b2961f0e
Revert "Add support for overriding stats logger's base URL" 2020-08-13 10:09:09 +03:00
rennokki 9d8e2ff323
Merge pull request #115 from francislavoie/stats-url
Add support for overriding stats logger's base URL
2020-08-13 10:03:56 +03:00
Francis Lavoie c203d24469
Clean up some typos, add some type hints, StyleCI fixes 2019-09-23 15:34:55 -04:00