fix server with multiple playwrights

This commit is contained in:
Tommy D. Rossi
2025-11-15 13:37:08 +01:00
parent 14d7f82d13
commit a7a550eeb7
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import playwright from 'playwright-core';
async function main() {
const cdpEndpoint = `ws://localhost:9988/cdp`
const cdpEndpoint = `ws://localhost:9988/cdp/${Date.now()}`
const browser = await playwright.chromium.connectOverCDP(cdpEndpoint);
const contexts = browser.contexts();
+1 -1
View File
@@ -1,4 +1,4 @@
import { startRelayServer } from '../src/extension/extension-context-factory.js'
import { startRelayServer } from '../src/extension/cdp-relay.js'
async function main() {
const server = await startRelayServer({ port: 9988 })
@@ -1 +0,0 @@
export { startRelayServer } from './cdp-relay.js'