Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/smoldot2/internals/remote-instance.d.ts>startInstanceServer

Lightweight client for Substrate-based chains, such as Polkadot and Kusama.
Latest
function startInstanceServer
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

Returns

Promise<Promise<void>>