Display socket response with electron?


I have a mitm proxy, it monitors every response between a browser and a server. Now I want to display everything the browser would display in my electron app.

Since I have captured all the responses, is there a way to display a response in electron? All that I am aware of is openURL and loadFile, neither would suffice the job.


Of course, I can save html responses to a file and load that file. But how about the css and javascript files that the html requires? That’s the part I can’t think of a way to workaround.