modify
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user