pusherServer = app(WebSocketHandler::class); } protected function getPackageProviders($app) { return [WebSocketsServiceProvider::class]; } protected function getEnvironmentSetUp($app) { $app['config']->set('websockets.clients', [ [ 'name' => 'Test Client', 'app_id' => 1234, 'app_key' => 'TestKey', 'app_secret' => 'TestSecret' ] ]); } protected function getWebSocketConnection(string $url = '/?appKey=TestKey'): Connection { $connection = new Connection(); $connection->httpRequest = new Request('GET', $url); return $connection; } }