This commit is contained in:
2020-11-01 04:47:05 +08:00
parent c9fc54302c
commit 2a183046a0
+2 -3
View File
@@ -57,15 +57,14 @@ class OnPacket extends Callback
}
/**
* @param Server $server
* @param $data
* @param $clientInfo
* @return mixed
* @throws
* @throws Exception
*/
public function onHandler($server, $data, $clientInfo)
public function onHandler(Server $server,string $data,array $clientInfo)
{
try {
$client = [$clientInfo['address'], $clientInfo['port']];