From 92362ba918173e26cbb2a8e9798965de72e260ad Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Sat, 24 Nov 2018 13:58:56 +0100 Subject: [PATCH] wip --- src/LaravelEcho/WebSocket/PusherServer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LaravelEcho/WebSocket/PusherServer.php b/src/LaravelEcho/WebSocket/PusherServer.php index 9cab45d..1889fe5 100644 --- a/src/LaravelEcho/WebSocket/PusherServer.php +++ b/src/LaravelEcho/WebSocket/PusherServer.php @@ -9,6 +9,7 @@ use Exception; use Ratchet\ConnectionInterface; use Ratchet\RFC6455\Messaging\MessageInterface; use BeyondCode\LaravelWebSockets\WebSocketController; +use BeyondCode\LaravelWebSockets\ClientProviders\Client; use BeyondCode\LaravelWebSockets\LaravelEcho\Pusher\Channels\ChannelManager; use BeyondCode\LaravelWebsockets\LaravelEcho\Pusher\Exceptions\PusherException; use BeyondCode\LaravelWebSockets\LaravelEcho\Pusher\Exceptions\UnknownAppKeyException; @@ -70,7 +71,7 @@ class PusherServer extends WebSocketController parse_str($request->getUri()->getQuery(), $queryParameters); if (! $client = Client::findByAppKey($queryParameters['appKey'])) { - throw new UnknownAppKey($queryParameters['appKey']); + throw new UnknownAppKeyException($queryParameters['appKey']); } $connection->client = $client;