MCPcopy
hub / github.com/rrweb-io/rrweb / getServerURL

Function getServerURL

packages/rrweb/test/utils.ts:93–100  ·  view source on GitHub ↗
(server: http.Server)

Source from the content-addressed store, hash-verified

91 });
92
93export function getServerURL(server: http.Server): string {
94 const address = server.address();
95 if (address && typeof address !== 'string') {
96 return `http://localhost:${address.port}`;
97 } else {
98 return `${address}`;
99 }
100}
101
102/**
103 * Puppeteer may cast random mouse move which make our tests flaky.

Callers 9

record.test.tsFile · 0.90
dialog.test.tsFile · 0.90
setupFunction · 0.90
addRecordingScriptFunction · 0.90
video.test.tsFile · 0.90
dialog.test.tsFile · 0.90
webgl.test.tsFile · 0.90

Calls 1

addressMethod · 0.65

Tested by 2

setupFunction · 0.72
addRecordingScriptFunction · 0.72