src/Leevel/Protocol/Client/Rpc.php
public function call(string $call, array $params = [], array $metas = []): IResponse
    {
        $transport = $this->makeTransport();
        $protocol = new TBinaryProtocol($transport);
        $transport->open();

        $response = $this->getResponseWithProtocol($protocol, [
            'call'   => $call,
            'params' => $params,
            'metas'  => $metas,
        ]);

        $transport->close();

        $response = $this->normalizeResponse($response);

        return $response;
    }
public function call(string $call, array $params = [], array $metas = []): IResponse
    {
        $transport = $this->makeTransport();
        $protocol = new TBinaryProtocol($transport);
        $transport->open();

        $response = $this->getResponseWithProtocol($protocol, [
            'call'   => $call,
            'params' => $params,
            'metas'  => $metas,
        ]);

        $transport->close();

        $response = $this->normalizeResponse($response);

        return $response;
    }
Rpc 调用.

@param string $call
@param array  $params
@param array  $metas

@return \Leevel\Http\IResponse