sitespeedio / chrome-har

Create HAR files from Chrome Debugging Protocol data
MIT License
148 stars 50 forks source link

requestIntercepted deprecated. Support for responseReceived? #76

Open vbisbest opened 3 years ago

vbisbest commented 3 years ago

Seem requestIntercepted has been deprecated. Is there any way for this library to work with responseReceived? It contains response and request information. All you would need for capture is:

client.on('Network.responseReceived', async (params: any) => { let method = "Network.responseReceived"; harEvents.push({ method, params }); });

However when harFromMessages is called, it gets no events and no pages, basically empty. Thoughts?