diff --git a/HttpServer/Events/OnClose.php b/HttpServer/Events/OnClose.php index 414cda27..05b31b19 100644 --- a/HttpServer/Events/OnClose.php +++ b/HttpServer/Events/OnClose.php @@ -28,7 +28,7 @@ class OnClose extends Callback try { defer(fn() => fire(Event::SYSTEM_RESOURCE_RELEASES)); - Event::trigger(Event::SERVER_CLIENT_CLOSE, [$server, $fd]); + Event::trigger(Event::SERVER_ON_CLOSE, [$server, $fd]); } catch (\Throwable $exception) { $this->addError($exception, 'throwable'); } diff --git a/HttpServer/Service/Websocket.php b/HttpServer/Service/Websocket.php index 55d097c0..0e52b7e6 100644 --- a/HttpServer/Service/Websocket.php +++ b/HttpServer/Service/Websocket.php @@ -31,8 +31,6 @@ class Websocket extends HAWebsocket $this->on('handshake', $this->createHandler('handshake')); $this->on('message', $this->createHandler('message')); $this->on('close', $this->createHandler('close')); - - var_dump($this->getCallback('close')); } }