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

Commit 4722aa8

Browse files
committed
Merge branch 'master' of github.com:beyondcode/laravel-websockets
2 parents de79167 + 6c741d8 commit 4722aa8

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/Apps/App.php

+10
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class App
2121
/** @var string|null */
2222
public $host;
2323

24+
/** @var string|null */
25+
public $path;
26+
2427
/** @var int|null */
2528
public $capacity = null;
2629

@@ -76,6 +79,13 @@ public function setHost(string $host)
7679
return $this;
7780
}
7881

82+
public function setPath(string $path)
83+
{
84+
$this->path = $path;
85+
86+
return $this;
87+
}
88+
7989
public function enableClientMessages(bool $enabled = true)
8090
{
8191
$this->clientMessagesEnabled = $enabled;

src/Apps/ConfigAppProvider.php

+4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ protected function instanciate(?array $appAttributes): ?App
7171
$app->setHost($appAttributes['host']);
7272
}
7373

74+
if (isset($appAttributes['path'])) {
75+
$app->setPath($appAttributes['path']);
76+
}
77+
7478
$app
7579
->enableClientMessages($appAttributes['enable_client_messages'])
7680
->enableStatistics($appAttributes['enable_statistics'])

0 commit comments

Comments
 (0)