rename emptyclient to localclient

This commit is contained in:
anthony 2019-07-28 21:57:24 +02:00 committed by Francis Lavoie
parent f2b3347f89
commit 373b993e64
No known key found for this signature in database
GPG Key ID: B9E0E04A76AF4692
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ use React\Promise\FulfilledPromise;
use React\Promise\PromiseInterface;
use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface;
class EmptyClient implements ReplicationInterface
class LocalClient implements ReplicationInterface
{
/**
* Boot the pub/sub provider (open connections, initial subscriptions, etc).

View File

@ -10,7 +10,7 @@ use Illuminate\Support\ServiceProvider;
use Illuminate\Broadcasting\BroadcastManager;
use BeyondCode\LaravelWebSockets\Server\Router;
use BeyondCode\LaravelWebSockets\Apps\AppProvider;
use BeyondCode\LaravelWebSockets\PubSub\Drivers\EmptyClient;
use BeyondCode\LaravelWebSockets\PubSub\Drivers\LocalClient;
use BeyondCode\LaravelWebSockets\PubSub\Drivers\RedisClient;
use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface;
use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
@ -56,7 +56,7 @@ class WebSocketsServiceProvider extends ServiceProvider
{
if (config('websockets.replication.enabled') !== true || config('websockets.replication.driver') !== 'redis') {
$this->app->singleton(ReplicationInterface::class, function () {
return new EmptyClient();
return new LocalClient();
});
return;