From 123a624b1e560c0f0671c484ef2893ae48f80d4f Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Tue, 14 Nov 2023 17:55:15 +0000 Subject: [PATCH] wip --- src/WebSockets/WebSocketMiddleware.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/WebSockets/WebSocketMiddleware.php b/src/WebSockets/WebSocketMiddleware.php index 5d5c5dd5..4e7c9761 100644 --- a/src/WebSockets/WebSocketMiddleware.php +++ b/src/WebSockets/WebSocketMiddleware.php @@ -67,9 +67,8 @@ protected function connection(ServerRequestInterface $request, WsConnection $con { return app(ConnectionManager::class) ->for($app = $this->application($request)) - ->resolve( - $connection->resourceId, - fn () => new Connection( + ->connect( + new Connection( $connection, $app, $this->origin($request)