From 55cc89ab8cfaa84d255285c1a2a75edc4c7bf3d0 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 14 Feb 2018 12:53:06 +0100 Subject: [PATCH] Log --- server/src/Server.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/Server.php b/server/src/Server.php index 444c8f8..d486655 100644 --- a/server/src/Server.php +++ b/server/src/Server.php @@ -59,7 +59,7 @@ class Server implements MessageComponentInterface public function onOpen(ConnectionInterface $conn) { $this->clients->attach($conn); - $this->output->writeln('New client'); + $this->output->writeln('New connection'); } /** @@ -99,6 +99,7 @@ class Server implements MessageComponentInterface public function onClose(ConnectionInterface $conn) { $this->clients->detach($conn); + $this->output->writeln('Connection closed'); } /**