Skip to main content
Module

x/enzastdlib/rpc/mod.ts>Server

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
interface Server
import { type Server } from "https://deno.land/x/enzastdlib@v0.0.4/rpc/mod.ts";

Represents a RPC server that can respond to remote RPC clients.

Type Parameters

optional
ServeReturn = unknown

Properties

readonly
closed: boolean

Represents if the RPC server is currently closed.

readonly
close: () => Promise<void> | void

Closes the RPC server.

readonly
serve: () => Promise<ServeReturn> | ServeReturn

Starts the RPC server.