改名
This commit is contained in:
@@ -295,6 +295,22 @@ class Response extends HttpService
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $clientId
|
||||||
|
* @param int $statusCode
|
||||||
|
* @param string $message
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function closeClient($clientId, $statusCode = 200, $message = ''): mixed
|
||||||
|
{
|
||||||
|
$socket = Snowflake::getWebSocket();
|
||||||
|
if (!$socket->exist($clientId)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return $socket->close($clientId, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param int $offset
|
* @param int $offset
|
||||||
|
|||||||
Reference in New Issue
Block a user