This commit is contained in:
2020-11-01 04:31:16 +08:00
parent ee450b60b9
commit 351128b0d9
+2 -3
View File
@@ -60,14 +60,13 @@ class OnReceive extends Callback
/**
* @param Server $server
* @param int $fd
* @param int $reactorId
* @param string $data
* @return mixed
* @throws Exception
*/
public function onHandler(\Swoole\Server $server, $fd, $reactorId, $data)
public function onHandler(\Swoole\Server $server, $fd, $data)
{
var_dump($fd, $reactorId, $data);
var_dump($fd, $data);
try {
$client = [$fd];
if (empty($data = $this->unpack($data))) {