Stream data sender now reacts to connection delay. It will buffer requests when the delay is high.
This commit is contained in:
@@ -41,6 +41,16 @@ export class Sender {
|
||||
this.bufferReq = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the send delay of current sender
|
||||
*
|
||||
* @param {integer} newDelay the new delay
|
||||
*
|
||||
*/
|
||||
setDelay(newDelay) {
|
||||
this.bufferFlushDelay = newDelay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends data to the this.sender
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user