feat: add ACK mechanism for WS execute_js + timeout diagnostics

- TMWebDriver: add self.acks dict, HTTP implicit ACK on longpoll dequeue, WS explicit ACK handler, enhanced timeout diagnostics (4 cases)
- Fix: data.get('type') in 'result' -> == 'result'
- JS userscript: send ACK on script receive
- tgapp: fix proxy URL prefix
- mykey_template: add tg/proxy fields
This commit is contained in:
Liang Jiaqing
2026-02-13 15:30:49 +08:00
parent b06cd52cf2
commit 8d3582e3b7
5 changed files with 27 additions and 18 deletions

View File

@@ -366,6 +366,7 @@
ws.onmessage = async function(e) {
try {
let data = JSON.parse(e.data);
ws.send(JSON.stringify({type: 'ack',id: data.id}));
let startTime = Date.now();
let newTabs = [];
let checkNewTab = data.auto_switch_newtab === true;