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

Method getByShellId

packages/nodebox/src/modules/preview.ts:77–81  ·  view source on GitHub ↗
(sourceShellId: string, timeout?: number)

Source from the content-addressed store, hash-verified

75 }
76
77 public async getByShellId(sourceShellId: string, timeout?: number): Promise<PreviewInfo> {
78 return this.waitFor({ sourceShellId }, (data) => data.sourceShellId === sourceShellId, timeout).catch((error) => {
79 throw new Error(format('Failed to get shell by ID "%s"', sourceShellId), { cause: error });
80 });
81 }
82
83 public async waitForPort(port: number, timeout?: number): Promise<PreviewInfo> {
84 return this.waitFor({ port }, (data) => data.port === port, timeout).catch((error) => {

Callers

nothing calls this directly

Calls 1

waitForMethod · 0.95

Tested by

no test coverage detected