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'; /**