From e1dd10e2102cc14093d0b9f45004353a9c2b6519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 8 Mar 2021 18:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Events/OnClose.php | 2 +- System/Event.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Events/OnClose.php b/HttpServer/Events/OnClose.php index c2d32f98..22e65d5a 100644 --- a/HttpServer/Events/OnClose.php +++ b/HttpServer/Events/OnClose.php @@ -67,7 +67,7 @@ class OnClose extends Callback */ private function name($server_port): string { - return 'listen ' . $server_port . ' ' . Event::SERVER_CLOSE; + return 'listen ' . $server_port . ' ' . Event::SERVER_CLIENT_CLOSE; } diff --git a/System/Event.php b/System/Event.php index 35074f2c..3a841a53 100644 --- a/System/Event.php +++ b/System/Event.php @@ -57,6 +57,7 @@ class Event extends BaseObject const SERVER_HANDSHAKE = 'on handshake'; const SERVER_MESSAGE = 'on message'; const SERVER_CLOSE = 'on close'; + const SERVER_CLIENT_CLOSE = 'SERVER:CLIENT:CLOSE'; /**