(sessionId: string, event: string, payload?: Record<string, unknown>)
| 411 | |
| 412 | // CDP |
| 413 | async sendCdpEvent(sessionId: string, event: string, payload?: Record<string, unknown>) { |
| 414 | assertCdpAllowed(project) |
| 415 | const cdp = await globalServer.ensureCDPHandler(sessionId, rpcId) |
| 416 | return cdp.send(event, payload) |
| 417 | }, |
| 418 | async trackCdpEvent(sessionId: string, type: 'on' | 'once' | 'off', event: string, listenerId: string) { |
| 419 | assertCdpAllowed(project) |
| 420 | const cdp = await globalServer.ensureCDPHandler(sessionId, rpcId) |
nothing calls this directly
no test coverage detected