Elixir server library for elixir-ts-rpc — a typed RPC layer between Elixir and TypeScript. Pre-1.0, so APIs may change. Start with Getting started.
Type sources
Types come from a compiled module's BEAM debug info. No compile-time macro is required. Two backends exist:
RpcElixir.Types.FromSpec(recommended) reads classic@specdeclarations viaCode.Typespec.fetch_specs/1.RpcElixir.Types.FromInferred(experimental) is lossy. See its module docs.
See the README and Supported types.
Summary
Functions
In-process caller for tests and server-to-server invocations.
Functions
@spec call(module(), String.t(), map(), RpcElixir.Context.t()) :: RpcElixir.Dispatcher.result()
In-process caller for tests and server-to-server invocations.
Builds a minimal %Resolution{} from path and ctx. Dispatches it, then
returns the resolution's :result.