So to keep it simple I would like to know how to use node js and a web browser. I know how to open one using that snippet below.
var open = require("open"); open('127.0.0.1:1337');
But how would I change the URL in the browser in node js? Or gathering data that is on the site? Such as sending the html code to the node js server or sending the node js server the current connected web sockets. So the node js server can do anything a normal user can.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.