This property exists on streams after Node 8.10 so it is added here for backwards compatibility
Number of bytes buffered and waiting to be read
This property exists on streams after Node 9.4 so it is added here for backwards compatibility
This property exists on streams after Node 9.4 so it is added here for backwards compatibility
Latest receipt for total sent amount.
The current limit up to which the stream will try to receive, denominated in the connection plugin's units.
(If the receiveMax
is greater than the totalReceived
, the stream will continue to receive money when the other side sends it)
The current limit up to which the stream will try to send, denominated in the connection plugin's units.
(If the sendMax
is greater than the totalSent
, the stream will continue to send the difference)
Total amount received so far, denominated in the connection plugin's units.
Total amount sent so far, denominated in the connection plugin's units.
Returns the value of writableHighWaterMark passed when constructing this stream
This property exists on streams after Node 8.10 so it is added here for backwards compatibility
This property exists on streams after Node 8.10 so it is added here for backwards compatibility
Number of bytes buffered and waiting to be sent
This property exists on streams after Node 9.4 so it is added here for backwards compatibility
This property exists on streams after Node 9.4 so it is added here for backwards compatibility
(Internal) Add money to the stream (from an external source) (Used by the Connection class but not meant to be part of the public API)
(Internal) Cancel hold if sending money failed (Used by the Connection class but not meant to be part of the public API)
(Called internally by the Node Stream when stream.destroy is called)
(Internal) Execute hold when money has been successfully transferred (Used by the Connection class but not meant to be part of the public API)
(Called internally by the Node Stream when the stream ends)
(Internal) Check how much is available to send (Used by the Connection class but not meant to be part of the public API)
(Internal) Determine how much more the stream can receive (Used by the Connection class but not meant to be part of the public API)
(Used by the Connection class but not meant to be part of the public API)
(Used by the Connection class but not meant to be part of the public API)
(Used by the Connection class but not meant to be part of the public API)
(Used by the Connection class but not meant to be part of the public API)
(Internal) Hold outgoing balance (Used by the Connection class but not meant to be part of the public API)
(Used by the Connection class but not meant to be part of the public API)
(Used by the Connection class but not meant to be part of the public API)
(Called internally by the Node Stream when stream.read is called)
(Used by the Connection class but not meant to be part of the public API)
(Used by the Connection class but not meant to be part of the public API)
(Used by the Connection class but not meant to be part of the public API)
(Called internally by the Node Stream when stream.write is called)
(Called internally by the Node Stream when stream.write is called)
Event emitter The defined events on documents including:
Returns true if the stream is open for sending and/or receiving.
Set the total amount the stream will receive and wait for that amount to be received.
Note that this is absolute, not relative so calling receiveTotal(100)
twice will only receive 100 units.
This promise will only resolve when the absolute amount specified is reached, so lowering the receiveMax
may cause this not to resolve.
This promise will only resolve when the absolute amount specified is reached, so lowering the receiveMax
may cause this not to resolve.
Set the total amount the stream will send and wait for that amount to be sent.
Note that this is absolute, not relative so calling sendTotal(100)
twice will only send 100 units.
This promise will only resolve when the absolute amount specified is reached, so lowering the sendMax
may cause this not to resolve.
This promise will only resolve when the absolute amount specified is reached, so lowering the sendMax
may cause this not to resolve.
Set the total amount this stream will receive, denominated in the connection plugin's units.
Note that this is absolute, not relative so calling setReceiveMax(100)
twice will only let the stream receive 100 units.
Set the total amount this stream will send, denominated in the connection plugin's units.
Note that this is absolute, not relative so calling setSendMax(100)
twice will only send 100 units.
Generated using TypeDoc
Returns the value of readableHighWaterMark passed when constructing this stream
This property exists on streams after Node 8.10 so it is added here for backwards compatibility