src/Leevel/Protocol/RpcServer.php
public function onReceive(SwooleServer $server, int $fd, int $reactorId, string $data): void
    {
        parent::onReceive($server, $fd, $reactorId, $data);

        $this->thriftServer->receive(
            $server,
            $fd,
            $reactorId,
            $data
        );
    }
public function onReceive(SwooleServer $server, int $fd, int $reactorId, string $data): void
    {
        parent::onReceive($server, $fd, $reactorId, $data);

        $this->thriftServer->receive(
            $server,
            $fd,
            $reactorId,
            $data
        );
    }
}
监听数据发送事件.

@param \Swoole\Server $server
@param int            $fd
@param int            $reactorId
@param string         $data

@see https://wiki.swoole.com/wiki/page/50.html