This commit is contained in:
Marcel Pociot 2018-11-24 13:58:56 +01:00
parent e6b22dc36f
commit 92362ba918
1 changed files with 2 additions and 1 deletions

View File

@ -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;