diff --git a/src/Dashboard/EventHandler.php b/src/Dashboard/EventHandler.php new file mode 100644 index 0000000..460b2b6 --- /dev/null +++ b/src/Dashboard/EventHandler.php @@ -0,0 +1,8 @@ +subscriptions[$connection->socketId]); if (! $this->hasConnections()) { + event(new ChannelVacated($connection, $this->channelId)); Dashboard::vacated($connection, $this->channelId); } }