Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 3f48a0f

Browse files
committed
Rename server to host
1 parent 30d1a6b commit 3f48a0f

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

config/websockets.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
[
1414
'id' => env('PUSHER_APP_ID'),
1515
'name' => env('APP_NAME'),
16-
'server' => null,
1716
'key' => env('PUSHER_APP_KEY'),
1817
'secret' => env('PUSHER_APP_SECRET'),
1918
'enable_client_messages' => false,

resources/views/dashboard.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
methods: {
110110
connect() {
111111
this.pusher = new Pusher(this.app.key, {
112-
wsHost: this.app.server.length === 0 ? window.location.hostname : this.app.server,
112+
wsHost: this.app.host.length === 0 ? window.location.hostname : this.app.host,
113113
wsPort: this.port,
114114
disableStats: true,
115115
authEndpoint: '/{{ request()->path() }}/auth',

src/Apps/App.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class App
1919
public $name;
2020

2121
/** @var string|null */
22-
public $server;
22+
public $host;
2323

2424
/** @var bool */
2525
public $clientMessagesEnabled = false;
@@ -66,9 +66,9 @@ public function setName(string $appName)
6666
return $this;
6767
}
6868

69-
public function setServer(string $server)
69+
public function setHost(string $host)
7070
{
71-
$this->server = $server;
71+
$this->host = $host;
7272

7373
return $this;
7474
}

src/Apps/ConfigAppProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ protected function instanciate(?array $appAttributes): ?App
6767
$app->setName($appAttributes['name']);
6868
}
6969

70-
if (isset($appAttributes['server'])) {
71-
$app->setServer($appAttributes['server']);
70+
if (isset($appAttributes['host'])) {
71+
$app->setHost($appAttributes['host']);
7272
}
7373

7474
$app

0 commit comments

Comments
 (0)