(sourceShellId: string, timeout?: number)
| 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) => { |