This commit is contained in:
as2252258@163.com
2021-07-11 04:31:15 +08:00
parent 6ac65948db
commit 22b9593de9
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ class OnClose extends Callback
try { try {
defer(fn() => fire(Event::SYSTEM_RESOURCE_RELEASES)); 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) { } catch (\Throwable $exception) {
$this->addError($exception, 'throwable'); $this->addError($exception, 'throwable');
} }
-2
View File
@@ -31,8 +31,6 @@ class Websocket extends HAWebsocket
$this->on('handshake', $this->createHandler('handshake')); $this->on('handshake', $this->createHandler('handshake'));
$this->on('message', $this->createHandler('message')); $this->on('message', $this->createHandler('message'));
$this->on('close', $this->createHandler('close')); $this->on('close', $this->createHandler('close'));
var_dump($this->getCallback('close'));
} }
} }