wip
This commit is contained in:
parent
dc8441be4a
commit
bd737e4d79
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
namespace BeyondCode\LaravelWebSockets\Statistics\Logging;
|
namespace BeyondCode\LaravelWebSockets\Statistics\Logging;
|
||||||
|
|
||||||
|
use BeyondCode\LaravelWebSockets\Apps\App;
|
||||||
|
|
||||||
class Statistic
|
class Statistic
|
||||||
{
|
{
|
||||||
protected $appId;
|
protected $appId;
|
||||||
|
|
@ -23,6 +25,11 @@ class Statistic
|
||||||
$this->appId = $appId;
|
$this->appId = $appId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isEnabled(): bool
|
||||||
|
{
|
||||||
|
return App::findById($this->appId)->statisticsEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
public function connection()
|
public function connection()
|
||||||
{
|
{
|
||||||
$this->connections++;
|
$this->connections++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue