Rename `server` to `host`

This commit is contained in:
Lukas Kämmerling 2018-12-05 13:58:30 +01:00
parent 30d1a6b79c
commit 3f48a0fe50
4 changed files with 6 additions and 7 deletions

View File

@ -13,7 +13,6 @@ return [
[ [
'id' => env('PUSHER_APP_ID'), 'id' => env('PUSHER_APP_ID'),
'name' => env('APP_NAME'), 'name' => env('APP_NAME'),
'server' => null,
'key' => env('PUSHER_APP_KEY'), 'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'), 'secret' => env('PUSHER_APP_SECRET'),
'enable_client_messages' => false, 'enable_client_messages' => false,

View File

@ -109,7 +109,7 @@
methods: { methods: {
connect() { connect() {
this.pusher = new Pusher(this.app.key, { 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, wsPort: this.port,
disableStats: true, disableStats: true,
authEndpoint: '/{{ request()->path() }}/auth', authEndpoint: '/{{ request()->path() }}/auth',

View File

@ -19,7 +19,7 @@ class App
public $name; public $name;
/** @var string|null */ /** @var string|null */
public $server; public $host;
/** @var bool */ /** @var bool */
public $clientMessagesEnabled = false; public $clientMessagesEnabled = false;
@ -66,9 +66,9 @@ class App
return $this; return $this;
} }
public function setServer(string $server) public function setHost(string $host)
{ {
$this->server = $server; $this->host = $host;
return $this; return $this;
} }

View File

@ -67,8 +67,8 @@ class ConfigAppProvider implements AppProvider
$app->setName($appAttributes['name']); $app->setName($appAttributes['name']);
} }
if (isset($appAttributes['server'])) { if (isset($appAttributes['host'])) {
$app->setServer($appAttributes['server']); $app->setHost($appAttributes['host']);
} }
$app $app