Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

Alternative client for Substrate-based chains.
Go to Latest
function startInstanceServer
import { startInstanceServer } from "https://deno.land/x/smoldot2@light-js-deno-v1.0.6/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>>