MCPcopy Create free account
hub / github.com/Sandpack/nodebox-runtime / preview

Method preview

packages/nodebox/src/Nodebox.ts:154–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 }
153
154 get preview(): PreviewApi {
155 invariant(
156 this.isConnected,
157 'Failed to access the Preview API: consumer is not connected. Did you forget to run "connect()"?'
158 );
159
160 if (this.previewApi) {
161 return this.previewApi;
162 }
163
164 this.previewApi = new PreviewApi(this.channel);
165 return this.previewApi;
166 }
167}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected