This commit is contained in:
2021-07-21 14:30:34 +08:00
parent 270a7ca961
commit 8d83dedd2b
+11 -1
View File
@@ -113,7 +113,17 @@ class HTTPServerListener extends Abstracts\Server
*/
public function onDisconnect(Server $server, int $fd)
{
$this->runEvent(Constant::CONNECT, null, [$server, $fd]);
$this->runEvent(Constant::DISCONNECT, null, [$server, $fd]);
}
/**
* @param Server $server
* @param int $fd
*/
public function onClose(Server $server, int $fd)
{
$this->runEvent(Constant::CLOSE, null, [$server, $fd]);
}
}