feat(daemon): add WebSocket relay with console/network monitoring
- Add ws-relay.ts: WebSocket server at /ws with broadcast function - Add network event types (request/response/failed) to core ws.ts types - Add ConsoleEntry and NetworkEntry types - Add consoleLog and networkLog buffers to PageRegistry (100/200 max) - Add console listener in createPage: broadcasts page:console events - Add network listeners (request/response/requestfailed) in createPage - Add page crash handler broadcasting page:crashed events - Add history endpoints: GET /pages/:id/console and GET /pages/:id/network - Integrate createWsRelay in server.ts startup - Bump ws from devDependency to full dependency
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
"@visionl/core": "*",
|
||||
"playwright": "^1.52.0",
|
||||
"playwright-extra": "^4.3.0",
|
||||
"puppeteer-extra-plugin-stealth": "^2.11.0"
|
||||
"puppeteer-extra-plugin-stealth": "^2.11.0",
|
||||
"ws": "^8.21.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/ws": "^8.0.0"
|
||||
|
||||
Reference in New Issue
Block a user