Added getSize() to know JSON buffer size (#151)

* Added doc for ws.enable and ws.enabled

* added getSize()
This commit is contained in:
Charles authored and Me No Dev committed 2017-04-06 10:10:59 +02:00
1 parent 09dde693ba
commit 120984e6d2
1 file changed
+2
+2
View File
@@ -72,6 +72,8 @@ class AsyncJsonResponse: public AsyncAbstractResponse {
return _contentLength;
}
size_t getSize() { return _jsonBuffer.size(); }
size_t _fillBuffer(uint8_t *data, size_t len){
ChunkPrint dest(data, _sentLength, len);
_root.printTo( dest ) ;