Commit Graph

249 Commits

Author SHA1 Message Date
Fabian @ Blax Software 9dc34d5c10 fix(hot-reload): keep the event dispatcher in the message child
The dev hot reload forgot the `events` instance, so the container rebuilt an
empty dispatcher and every listener the service providers registered was
gone for that message. Events fired from WS controllers reached nobody (a
shop's "order paid" mails and invoice silently never happened in dev).
Model observers kept working, which hid it: Eloquent holds its own
reference to the old dispatcher.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 12:56:37 +02:00
Fabian @ Blax Software ca90561c9d test(fork): extract fork-child connection reset into a tested method
The per-message fork child's Redis/cache/session isolation (#1445) was inline
in forkWithSocketPair() with no test — verified only by watching prod. Extract
it into Handler::resetInheritedConnectionsInChild() (behavior-preserving) and
add ForkChildConnectionResetTest: asserts it disconnects every host-bearing
connection, skips the client/options pseudo-entries, and never throws when the
redis manager is unresolvable. A future refactor that drops a connection now
fails CI instead of re-opening the predis desync flood.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-30 10:14:36 +02:00
Fabian @ Blax Software f030ff1fbf feat: integrate websocket routes into Laravel's route list; implement RouteListInjector for attribute-tagged methods and legacy controllers; add tests for route injection and collection 2026-04-29 09:26:53 +02:00
Fabian @ Blax Software be3c7400fe feat: enhance websocket attribute handling with prefix and suffix support; add HTTP controller fallback for event resolution; implement comprehensive tests for dispatcher and event registry 2026-04-29 08:29:49 +02:00
Fabian @ Blax Software 90e51c1bdf I open presence channel test 2026-04-21 16:52:44 +02:00
Fabian @ Blax Software 488f068140 C linting 2026-04-02 12:44:31 +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 bdcfcd00f1 I pint 2026-03-21 12:57:54 +01:00
Fabian @ Blax Software 0757e6d9f9 I stability 2026-03-21 12:56:50 +01:00
Fabian @ Blax Software c76e6ae111 RI websocket performance 2026-01-24 14:49:51 +01:00
Fabian @ Blax Software 2849f0fe5f RI websocket performance 2026-01-24 14:42:35 +01:00
Fabian @ Blax Software 5b8a2a8112 I performance, A testing & event-driven 2026-01-24 13:34:29 +01:00
Blax Software 87bf0ae05e Pusher : -> . 2025-01-18 17:06:52 +01:00
Alexander Blasl 1a5db82c26 Renovation 2025-01-16 08:54:02 +01:00
Marcel Pociot 2e4b2f35f9
Apply fixes from StyleCI (#1190) 2024-02-07 18:30:54 +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
Marcel Pociot fd2070fc3d update tests 2022-01-06 12:31:21 +01:00
erikn69 0a8f7aa33e
Fix on tests (#895) 2021-12-17 16:42:26 +01:00
Alex Renoki c43a9d4d46 Fixed Routes registration 2021-04-06 17:21:15 +03:00
Alex Renoki f27b6901cb Revert "Fixed mc"
This reverts commit 54a20aec46, reversing
changes made to a84f143087.
2021-01-23 16:52:12 +02:00
Alex Renoki 54a20aec46 Fixed mc 2021-01-23 16:51:59 +02:00
Alex Renoki df613de727 Also passing the key on the request 2021-01-19 12:20:58 +02:00
Alex Renoki a99b5d0004 Reverted check for messages count 2020-12-07 23:35:18 +02:00
Alex Renoki 94722a7155 Merge branch '2.x' of github.com:beyondcode/laravel-websockets into fix/fix-stale-data 2020-12-07 23:31:53 +02:00
Alex Renoki cbe4378086 Revert "formatting"
This reverts commit 8308a7d16d.
2020-12-07 23:30:36 +02:00
Alex Renoki b6837a05e4 Revert "Apply fixes from StyleCI (#632)"
This reverts commit 908f147cb3.
2020-12-07 23:30:28 +02:00
Alex Renoki b74144cdd5 Revert "wip formatting"
This reverts commit 19ca49a4a8.
2020-12-07 23:30:12 +02:00
Alex Renoki 2d30edb4f6 Reverted test 2020-12-07 23:29:28 +02:00
Alex Renoki c7aea38cdc Testing 2020-12-07 23:19:11 +02:00
Alex Renoki 19ca49a4a8 wip formatting 2020-12-07 20:48:15 +02:00
rennokki 908f147cb3
Apply fixes from StyleCI (#632) 2020-12-07 19:37:03 +01:00
Alex Renoki 8308a7d16d formatting 2020-12-07 20:36:39 +02:00
Alex Renoki a087cb9b6d Replaced react-buzz with react-http 2020-10-18 10:12:19 +03:00
Alex Renoki 391c5f7799 wip coverage & namings 2020-09-26 10:59:49 +03:00
Alex Renoki d0b4f46aec Fixed tests 2020-09-26 10:51:36 +03:00
Alex Renoki f39fa98f4d Merge branch 'feature/async-queue' of github.com:beyondcode/laravel-websockets into feature/async-queue 2020-09-26 10:47:53 +03:00
Alex Renoki a370e64cd5 renamed test 2020-09-26 10:47:50 +03:00
rennokki dea681703b
Apply fixes from StyleCI (#554) 2020-09-26 09:31:16 +02:00
Alex Renoki fd1a459047 Added integrations for Redis 2020-09-26 10:30:53 +03:00
rennokki 6c8c748b58
Apply fixes from StyleCI (#553) 2020-09-25 21:36:01 +02:00
Alex Renoki eb7161421f Merge branch 'feature/async-queue' of github.com:beyondcode/laravel-websockets into feature/async-queue 2020-09-25 22:35:42 +03:00
Alex Renoki 3aaecc8c3e fixed tests 2020-09-25 22:35:38 +03:00
rennokki 2880610bf6
Apply fixes from StyleCI (#551) 2020-09-25 21:16:30 +02:00
Alex Renoki c1bef4db5b Added async redis connection 2020-09-25 22:16:06 +03:00
rennokki a9f87dbf95
Apply fixes from StyleCI (#546) 2020-09-19 17:41:47 +02:00
Alex Renoki 53a6d0f875 Added tests 2020-09-19 18:41:25 +03:00
Alex Renoki 223a789b0d Added local removal for obsolete connections. 2020-09-19 18:38:08 +03:00
Alex Renoki 5cb2ee9fce Run promises one-after-another 2020-09-19 14:16:26 +03:00
rennokki 265c80d414
Apply fixes from StyleCI (#541) 2020-09-18 20:01:35 +02:00
Alex Renoki 2066e803b8 Fixed tests to make sure the message is broadcasted properly both locally and across servers. 2020-09-18 21:01:11 +03:00