8000 GitHub - mafintosh/debugging-stream: Debug streams, by adding latency etc
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mafintosh/debugging-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debugging-stream

Stream that helps you debug streams

npm install debugging-stream

Usage

const DebuggingStream = require('debugging-stream')

const s = new DebuggingStream(anotherStream, {
  latency: 100, // add between 100ms read/write latency,
  jitter: 10, // add 0-10 ms of jitter to the latency
  speed: 100, // send 100 bytes per sec
  writeSpeed, // same as speed but only affects writes
  readSpeed // same as speed but only affects reads
})

License

MIT

About

Debug streams, by adding latency etc

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •  
0