Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 14, 2023
1 parent 50bcde0 commit ab30e37
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 408 deletions.
16 changes: 8 additions & 8 deletions config/reverb.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
| messages received from and when sending messages to connected
| clients. You must specify one of the servers listed below.
|
| Supported: "ratchet", "api_gateway"
| Supported: "reverb", "api_gateway"
*/

'default' => env('REVERB_SERVER', 'ratchet'),
'default' => env('REVERB_SERVER', 'reverb'),

/*
|--------------------------------------------------------------------------
Expand All @@ -28,15 +28,15 @@

'servers' => [

'ratchet' => [
'host' => env('REVERB_RATCHET_HOST', '127.0.0.1'),
'port' => env('REVERB_RATCHET_PORT', 8080),
'reverb' => [
'host' => env('REVERB_HOST', '127.0.0.1'),
'port' => env('REVERB_PORT', 8080),
'connection_manager' => [
'prefix' => env('REVERB_RATCHET_CONNECTION_CACHE_PREFIX', 'reverb'),
'prefix' => env('REVERB_CONNECTION_CACHE_PREFIX', 'reverb'),
],
'publish_events' => [
'enabled' => env('REVERB_RATCHET_SCALING_ENABLED', false),
'channel' => env('REVERB_RATCHET_SCALING_CHANNEL', 'reverb'),
'enabled' => env('REVERB_SCALING_ENABLED', false),
'channel' => env('REVERB_SCALING_CHANNEL', 'reverb'),
],
],

Expand Down
51 changes: 0 additions & 51 deletions src/Console/Commands/StartServer.php

This file was deleted.

66 changes: 0 additions & 66 deletions src/Http/Controllers/EventController.php

This file was deleted.

49 changes: 0 additions & 49 deletions src/Http/Controllers/StatsController.php

This file was deleted.

12 changes: 6 additions & 6 deletions src/ServerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\Manager;
use Laravel\Reverb\Servers\ApiGateway\ApiGatewayProvider;
use Laravel\Reverb\Servers\Ratchet\RatchetProvider;
use Laravel\Reverb\Servers\Reverb\ReverbProvider;

class ServerManager extends Manager
{
Expand All @@ -19,17 +19,17 @@ public function __construct(protected Application $app)
*/
public function getDefaultDriver(): string
{
return $this->config->get('reverb.default', 'ratchet');
return $this->config->get('reverb.default', 'reverb');
}

/**
* Creates the Ratchet driver.
* Creates the Reverb driver.
*/
public function createRatchetDriver(): RatchetProvider
public function createReverbDriver(): ReverbProvider
{
return new RatchetProvider(
return new ReverbProvider(
$this->app,
$this->config->get('reverb.servers.ratchet', [])
$this->config->get('reverb.servers.reverb', [])
);
}

Expand Down
82 changes: 0 additions & 82 deletions src/Servers/Ratchet/Connection.php

This file was deleted.

Loading

0 comments on commit ab30e37

Please sign in to comment.