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