actions/ws_endpoint_spec.ts view source
(ws_endpoints: readonly WsEndpointSpec[] | undefined, options: ResolveWsEndpointsOptions): ResolvedWsEndpointSpec[] | undefined import {resolve_ws_endpoints} from '@fuzdev/fuz_app/actions/ws_endpoint_spec.js'; Fill in each WS endpoint spec's omitted allowed_origins (the server's) and
actions (the sole RPC endpoint's, through to_ws_actions), so every
consumer of the resolved list — the mount, the surface — reads the effective
values.
ws_endpoints
the resolved ws_endpoints option
readonly WsEndpointSpec[] | undefinedoptions
the server's allowlist and RPC endpoints, the defaults
returns
ResolvedWsEndpointSpec[] | undefined
the specs, each with allowed_origins and actions set
throws
Error- when a spec omits `actions` and `rpc_endpoints` does not hold exactly one endpoint — there is no single action set to serve