This commit is contained in:
2021-03-23 16:52:45 +08:00
parent 21eb9a6f62
commit e26ae905b2
+12
View File
@@ -57,6 +57,18 @@ class Client extends Component
}
/**
* 断开链接
*/
public function close()
{
if (!$this->client || !$this->client->isConnected()) {
return;
}
$this->client->close();
}
/**
* @return mixed
* @throws Exception