remove need for uuids

This commit is contained in:
Tommy D. Rossi
2025-11-13 21:16:25 +01:00
parent 8e98c68de4
commit 46be331120
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
import { RelayConnection, debugLog } from './relayConnection';
// Relay URL - fixed port for MCP bridge
const RELAY_URL = 'ws://localhost:9988/extension/550e8400-e29b-41d4-a716-446655440000';
const RELAY_URL = 'ws://localhost:9988/extension';
class SimplifiedExtension {
private _connection: RelayConnection | undefined;
+1 -2
View File
@@ -1,8 +1,7 @@
import playwright from 'playwright-core';
async function main() {
const uuid = process.env.CDP_UUID || '550e8400-e29b-41d4-a716-446655440000';
const cdpEndpoint = `ws://localhost:9988/cdp/${uuid}`
const cdpEndpoint = `ws://localhost:9988/cdp`
const browser = await playwright.chromium.connectOverCDP(cdpEndpoint);
const contexts = browser.contexts();
+2 -3
View File
@@ -75,9 +75,8 @@ export class CDPRelayServer {
this._wsHost = httpAddressToString(server.address()).replace(/^http/, 'ws');
const uuid = process.env.CDP_UUID || crypto.randomUUID();
this._cdpPath = `/cdp/${uuid}`;
this._extensionPath = `/extension/${uuid}`;
this._cdpPath = `/cdp`;
this._extensionPath = `/extension`;
this._resetExtensionConnection();
this._wss = new wsServer({ server });