改名
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user