From 5303d4553ccaf8521041aaf6f76095ace939bd1a Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Mon, 3 Dec 2018 11:10:02 +0100 Subject: [PATCH] Log disconnect --- src/WebSockets/WebSocketHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WebSockets/WebSocketHandler.php b/src/WebSockets/WebSocketHandler.php index 7c49957..9efb3b7 100644 --- a/src/WebSockets/WebSocketHandler.php +++ b/src/WebSockets/WebSocketHandler.php @@ -43,6 +43,8 @@ class WebSocketHandler implements MessageComponentInterface public function onClose(ConnectionInterface $connection) { $this->channelManager->removeFromAllChannels($connection); + + DashboardLogger::disconnection($connection); } public function onError(ConnectionInterface $connection, Exception $exception)