added web_response

This commit is contained in:
2026-06-06 19:49:40 -04:00
parent c86151ac82
commit 27261e0751
8 changed files with 223 additions and 6 deletions

View File

@@ -18,6 +18,9 @@ fplay.event.on("browser_connect", async function(ws){
const blanktab = await fplay.close_all_tabs(ws);
await fplay.delete_all_containers(ws);
// only return responses for these data sources
fplay.web_response_whitelist(ws, ["main_frame", "xmlhttprequest"]);
// create container
const container = await fplay.container_create(ws);
console.log(container);
@@ -47,4 +50,14 @@ fplay.event.on("browser_connect", async function(ws){
console.log(result);
});
fplay.event.on("web_request", async function(request){
console.log(request);
});
fplay.event.on("web_response", async function(request){
});
fplay.init(port, password, timeout);