mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 09:10:20 +00:00
fix: upgrade ws to wss for https CDP
This commit is contained in:
@@ -173,4 +173,12 @@ describe("cdp", () => {
|
||||
);
|
||||
expect(normalized).toBe("wss://user:pass@example.com/devtools/browser/ABC?token=abc");
|
||||
});
|
||||
|
||||
it("upgrades ws to wss when CDP uses https", () => {
|
||||
const normalized = normalizeCdpWsUrl(
|
||||
"ws://production-sfo.browserless.io",
|
||||
"https://production-sfo.browserless.io?token=abc",
|
||||
);
|
||||
expect(normalized).toBe("wss://production-sfo.browserless.io/?token=abc");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user