Merge branch 'master' of github.com:beyondcode/laravel-websockets
This commit is contained in:
commit
4722aa8197
|
|
@ -21,6 +21,9 @@ class App
|
|||
/** @var string|null */
|
||||
public $host;
|
||||
|
||||
/** @var string|null */
|
||||
public $path;
|
||||
|
||||
/** @var int|null */
|
||||
public $capacity = null;
|
||||
|
||||
|
|
@ -76,6 +79,13 @@ class App
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function setPath(string $path)
|
||||
{
|
||||
$this->path = $path;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function enableClientMessages(bool $enabled = true)
|
||||
{
|
||||
$this->clientMessagesEnabled = $enabled;
|
||||
|
|
|
|||
|
|
@ -71,6 +71,10 @@ class ConfigAppProvider implements AppProvider
|
|||
$app->setHost($appAttributes['host']);
|
||||
}
|
||||
|
||||
if (isset($appAttributes['path'])) {
|
||||
$app->setPath($appAttributes['path']);
|
||||
}
|
||||
|
||||
$app
|
||||
->enableClientMessages($appAttributes['enable_client_messages'])
|
||||
->enableStatistics($appAttributes['enable_statistics'])
|
||||
|
|
|
|||
Loading…
Reference in New Issue