Is your feature request related to a problem? Please describe.
const http2 = require('http2');
const session = http2.connect('https://google.com');
// Unfortunately there is no API for this.
// It would be very useful for example to catch how many streams are pending in this session.
session.once('stream', stream => {
console.log('Got stream!');
});
const request = session.request();
session.destroy();
Describe the solution you'd like Introduce a new stream event to HTTP2 client-side sessions, which is emitted on new requests. Push streams could be emitted e.g. via pushStream.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like Introduce a new
stream
event to HTTP2 client-side sessions, which is emitted on new requests. Push streams could be emitted e.g. viapushStream
.Describe alternatives you've considered None.