import { startInstanceServer } from "https://deno.land/x/smoldot2@light-js-deno-v2.0.31/internals/remote-instance.d.ts";
Returns a Promise
that resolves when the instance shuts down. Since the function is also
an asynchronous function, the actual return type is Promise<Promise<void>>
. That is, the
outer Promise
yields once the instance starts, and the inner Promise
yields once the
instance shuts down.
Parameters
config: ServerConfig
initPortToClient: MessagePort