Set HTTP/2 window size automatically based on estimated bandwidth and ping duration (RTT).
- tolerable latency -> increase window size if bandwidth is high.
- intolerable latency -> reduce window size if bandwidth is low.
npm install http2-auto-window-size
import {setupAutoWindowSize} from 'http2-auto-window-size';
server.on('session', session => setupAutoWindowSize(session));
MIT License.