改名
This commit is contained in:
@@ -57,15 +57,14 @@ class OnPacket extends Callback
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Server $server
|
* @param Server $server
|
||||||
* @param $data
|
* @param $data
|
||||||
* @param $clientInfo
|
* @param $clientInfo
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function onHandler($server, $data, $clientInfo)
|
public function onHandler(Server $server,string $data,array $clientInfo)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$client = [$clientInfo['address'], $clientInfo['port']];
|
$client = [$clientInfo['address'], $clientInfo['port']];
|
||||||
|
|||||||
Reference in New Issue
Block a user