MCPcopy Index your code
hub / github.com/Sandpack/nodebox-runtime / waitForPort

Method waitForPort

packages/nodebox/src/modules/preview.ts:83–87  ·  view source on GitHub ↗
(port: number, timeout?: number)

Source from the content-addressed store, hash-verified

81 }
82
83 public async waitForPort(port: number, timeout?: number): Promise<PreviewInfo> {
84 return this.waitFor({ port }, (data) => data.port === port, timeout).catch((error) => {
85 throw new Error(format('Failed to await port %d', port), { cause: error });
86 });
87 }
88}

Callers

nothing calls this directly

Calls 1

waitForMethod · 0.95

Tested by

no test coverage detected