ServerManifest
interfaz
Endpoints del servidor: API, RPC y Socket. Los archivos son claves opacas que se pasan al cargador
de módulos del host. Lo produce discoverServerManifest de @meekojs/meeko/build.
ts
import type { ServerManifest } from "@meekojs/meeko/server";Source code src/server/runtime/discovery.ts:103
Declaración #
ts
interface ServerManifest {
readonly api: readonly ApiEndpoint[]
readonly rpc: readonly RpcEndpoint[]
readonly socket?: readonly SocketEndpoint[]
}Example #
ts
import type { ServerManifest } from "@meekojs/meeko/server";
const manifest: ServerManifest = {
api: [{ kind: "api", file: "/server/api/health.get.ts", pathname: "/api/health", method: "GET", clientKey: "health" }],
rpc: [],
socket: [],
};