diff --git a/config/websockets.php b/config/websockets.php index 52de0a8..40aaa24 100644 --- a/config/websockets.php +++ b/config/websockets.php @@ -13,7 +13,6 @@ return [ [ 'id' => env('PUSHER_APP_ID'), 'name' => env('APP_NAME'), - 'server' => null, 'key' => env('PUSHER_APP_KEY'), 'secret' => env('PUSHER_APP_SECRET'), 'enable_client_messages' => false, diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index d25b223..6f951f9 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -109,7 +109,7 @@ methods: { connect() { this.pusher = new Pusher(this.app.key, { - wsHost: this.app.server.length === 0 ? window.location.hostname : this.app.server, + wsHost: this.app.host.length === 0 ? window.location.hostname : this.app.host, wsPort: this.port, disableStats: true, authEndpoint: '/{{ request()->path() }}/auth', diff --git a/src/Apps/App.php b/src/Apps/App.php index 62707c7..b11023d 100644 --- a/src/Apps/App.php +++ b/src/Apps/App.php @@ -19,7 +19,7 @@ class App public $name; /** @var string|null */ - public $server; + public $host; /** @var bool */ public $clientMessagesEnabled = false; @@ -66,9 +66,9 @@ class App return $this; } - public function setServer(string $server) + public function setHost(string $host) { - $this->server = $server; + $this->host = $host; return $this; } diff --git a/src/Apps/ConfigAppProvider.php b/src/Apps/ConfigAppProvider.php index 196a22e..786c9e2 100644 --- a/src/Apps/ConfigAppProvider.php +++ b/src/Apps/ConfigAppProvider.php @@ -67,8 +67,8 @@ class ConfigAppProvider implements AppProvider $app->setName($appAttributes['name']); } - if (isset($appAttributes['server'])) { - $app->setServer($appAttributes['server']); + if (isset($appAttributes['host'])) { + $app->setHost($appAttributes['host']); } $app