rename emptyclient to localclient
This commit is contained in:
parent
f2b3347f89
commit
373b993e64
|
|
@ -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).
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue