fluentd-node
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -341,2 +341,14 @@ import EventTime from "./event_time"; | ||
private clearAcks; | ||
/** | ||
* Returns the number of queued events that haven't been sent yet | ||
* | ||
* Useful to react if we're queuing up too many events within a single tick | ||
*/ | ||
get queueLength(): number; | ||
/** | ||
* Returns whether or not the socket is writable | ||
* | ||
* Useful to react if we're disconnected for any reason | ||
*/ | ||
get writable(): boolean; | ||
} |
@@ -498,4 +498,20 @@ "use strict"; | ||
} | ||
/** | ||
* Returns the number of queued events that haven't been sent yet | ||
* | ||
* Useful to react if we're queuing up too many events within a single tick | ||
*/ | ||
get queueLength() { | ||
return this.sendQueue.queueLength; | ||
} | ||
/** | ||
* Returns whether or not the socket is writable | ||
* | ||
* Useful to react if we're disconnected for any reason | ||
*/ | ||
get writable() { | ||
return this.socket.writable(); | ||
} | ||
} | ||
exports.FluentClient = FluentClient; | ||
//# sourceMappingURL=client.js.map |
{ | ||
"name": "fluentd-node", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "A fluent protocol implementation in node", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
@@ -804,2 +804,20 @@ import { | ||
} | ||
/** | ||
* Returns the number of queued events that haven't been sent yet | ||
* | ||
* Useful to react if we're queuing up too many events within a single tick | ||
*/ | ||
get queueLength(): number { | ||
return this.sendQueue.queueLength; | ||
} | ||
/** | ||
* Returns whether or not the socket is writable | ||
* | ||
* Useful to react if we're disconnected for any reason | ||
*/ | ||
get writable(): boolean { | ||
return this.socket.writable(); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
308400
7225