diff --git a/src/Servers/Ratchet/RatchetProvider.php b/src/Servers/Ratchet/RatchetProvider.php index 288aac5f..9eece882 100644 --- a/src/Servers/Ratchet/RatchetProvider.php +++ b/src/Servers/Ratchet/RatchetProvider.php @@ -20,6 +20,11 @@ class RatchetProvider extends ServerProvider { use InteractsWithAsyncRedis; + /** + * Indicates whether the server should publish events. + * + * @var bool + */ protected $publishesEvents; public function __construct(protected Application $app, protected array $config) @@ -81,6 +86,9 @@ public function subscribe(LoopInterface $loop) }); } + /** + * Enable publishing of events. + */ public function withPublishing(): void { $this->publishesEvents = true;