laravel-websockets/tests
Fabian @ Blax Software 88ed045899 BF close connections the legacy WebSocketHandler refuses
Server\WebSocketHandler can still be selected through
websockets.handlers.websocket. On an unknown app key verifyAppKey()
rejected its promise and then went on to set $connection->app = null and
resolve it anyway. onError() sent the 4001 frame but never closed the
socket, and a disallowed origin (4009) was left open the same way.

- verifyAppKey() returns after the rejection and passes a rejected lookup
  on.
- onOpen() refuses through refuseConnection(): websocket.error via
  onError(), then close with the exception's 4xxx code (1011 for anything
  else). A Throwable from verifyAppKey() itself is refused the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 12:29:49 +01:00
..
Apps A tests, documentation for helpers and lifecycle 2026-04-02 12:44:16 +02:00
Cache A tests, documentation for helpers and lifecycle 2026-04-02 12:44:16 +02:00
Commands fix(fork): children never outlive the server or hold its port (#2465) 2026-10-14 10:38:11 +02:00
Handlers Renovation 2025-01-16 08:54:02 +01:00
Ipc A tests, documentation for helpers and lifecycle 2026-04-02 12:44:16 +02:00
Mocks BF refuse a broken app key or failed app lookup without stopping the server 2026-11-04 12:25:54 +01:00
Models Renovation 2025-01-16 08:54:02 +01:00
Server fix(fork): reseed mt_rand in every message child 2026-10-20 09:22:50 +02:00
Unit 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
Websocket fix(fork): children never outlive the server or hold its port (#2465) 2026-10-14 10:38:11 +02:00
database/factories Renovation 2025-01-16 08:54:02 +01:00
AsyncRedisQueueTest.php Renovation 2025-01-16 08:54:02 +01:00
ClosedBeforeOpenTest.php fix(shutdown): soft shutdown always stops the loop 2026-09-28 14:20:46 +02:00
ConnectionTest.php BF refuse a broken app key or failed app lookup without stopping the server 2026-11-04 12:25:54 +01:00
ForkChildConnectionResetTest.php test(fork): extract fork-child connection reset into a tested method 2026-08-30 10:14:36 +02:00
HandlerLifecycleTest.php BF keep the channel tracking cache in step with the handler 2026-11-04 12:28:37 +01:00
HealthTest.php A tests, documentation for helpers and lifecycle 2026-04-02 12:44:16 +02:00
HotReloadKeepsListenersTest.php fix(hot-reload): keep the event dispatcher in the message child 2026-09-25 12:56:37 +02:00
LegacyWebSocketHandlerTest.php BF close connections the legacy WebSocketHandler refuses 2026-11-04 12:29:49 +01:00
LocalPongRemovalTest.php Renovation 2025-01-16 08:54:02 +01:00
OpenPresenceChannelFeatureTest.php I open presence channel test 2026-04-21 16:52:44 +02:00
PingTest.php A tests, documentation for helpers and lifecycle 2026-04-02 12:44:16 +02:00
PresenceChannelTest.php BF reject private/presence subscribe with invalid signature 2026-11-04 11:56:38 +01:00
PrivateChannelTest.php BF reject private/presence subscribe with invalid signature 2026-11-04 11:56:38 +01:00
PublicChannelTest.php C linting 2026-04-02 12:44:31 +02:00
RedisPongRemovalTest.php Renovation 2025-01-16 08:54:02 +01:00
ReplicationTest.php A tests, documentation for helpers and lifecycle 2026-04-02 12:44:16 +02:00
TestCase.php BF reject private/presence subscribe with invalid signature 2026-11-04 11:56:38 +01:00
TestServiceProvider.php Renovation 2025-01-16 08:54:02 +01:00
WebsocketServiceTest.php BF clear the per-channel socket lists when tracking is reset 2026-11-04 12:29:04 +01:00
bootstrap.php I performance, A testing & event-driven 2026-01-24 13:34:29 +01:00