sitespeedio / chrome-har

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

Support WebSocket in HAR #113

Open germanbisogno opened 6 months ago

germanbisogno commented 6 months ago

Do you have plans to include WebSockets in the result of harFromMessages?

Since chrome 76, it includes WebSocket messages in HAR exports.

Ref: https://developer.chrome.com/blog/new-in-devtools-76#websocket

Thanks,

Awesome project!

Germán

soulgalore commented 6 months ago

Hi @germanbisogno thanks for the kind words! Do you have a Chrome trace with a websocket, I can have a look.

Thanks Peter

soulgalore commented 6 months ago

Or even better a URL with an example, then I can generate the trace myself.

germanbisogno commented 6 months ago

hi @soulgalore , thanks for the quick response, you can setup a node express and play around ws by yourself, exporting the har file from devtools manually after sending some messages to your local server, for example as this page shows https://medium.com/@PubNub/node-js-websocket-programming-examples-f6b8e15f8f85.

Thanks,

Germán