Unverified 提交 2c0f2616 authored 作者: José Luis Millán's avatar José Luis Millán 提交者: GitHub

Move 'bufferedAmount' from dataConsumer.dump() to dataConsumer.getStats() (#503)

Since it is status information.
上级 ac65dc35
# Changelog
### 3.6.31 (WIP)
* Move `bufferedAmount` from `dataConsumer.dump()` to `dataConsumer.getStats()`.
### 3.6.30
* Add `pipe` option to `transport.consume()`(PR #494).
......
......@@ -49,6 +49,7 @@ export type DataConsumerStat =
protocol: string;
messagesSent: number;
bytesSent: number;
bufferedAmount: number;
}
/**
......
......@@ -92,9 +92,6 @@ namespace RTC
// Add protocol.
jsonObject["protocol"] = this->protocol;
// Add bufferedAmount.
jsonObject["bufferedAmount"] = this->bufferedAmount;
// Add bufferedAmountLowThreshold.
jsonObject["bufferedAmountLowThreshold"] = this->bufferedAmountLowThreshold;
}
......@@ -123,6 +120,10 @@ namespace RTC
// Add bytesSent.
jsonObject["bytesSent"] = this->bytesSent;
// Add bufferedAmount.
jsonObject["bufferedAmount"] = this->bufferedAmount;
}
void DataConsumer::HandleRequest(Channel::Request* request)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论