src/Client.php
public function keepAlive($id)
    {
        $params = [
            'ID' => $id,
        ];

        $body = $this->request(self::URI_KEEPALIVE, $params);

        if (!isset($body['result'])) {
            return $body;
        }
        // response "result" field, etcd bug?
        return [
            'ID' => $body['result']['ID'],
            'TTL' => $body['result']['TTL'],
        ];
    }
public function keepAlive($id)
    {
        $params = [
            'ID' => $id,
        ];

        $body = $this->request(self::URI_KEEPALIVE, $params);

        if (!isset($body['result'])) {
            return $body;
        }
        // response "result" field, etcd bug?
        return [
            'ID' => $body['result']['ID'],
            'TTL' => $body['result']['TTL'],
        ];
    }
public function keepAlive ( $ id ) { $ params = [ 'ID' => $ id , ] ; $ body = $ this -> request ( self :: URI_KEEPALIVE , $ params ) ; if ( ! isset ( $ body [ 'result' ] ) ) { return $ body ; } // response "result" field, etcd bug? return [ 'ID' => $ body [ 'result' ] [ 'ID' ] , 'TTL' => $ body [ 'result' ] [ 'TTL' ] , ] ; }
keeps the lease alive by streaming keep alive requests
from the client\nto the server and streaming keep alive responses
from the server to the client.

@param int $id  ID is the lease ID for the lease to keep alive.
@return array
@throws \GuzzleHttp\Exception\BadResponseException
keeps the lease alive by streaming keep alive requests from the client \ nto the server and streaming keep alive responses from the server to the client .