remove need for uuids
This commit is contained in:
@@ -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,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();
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user