Wire protocol implementation for oRPC, compatible with the official @orpc/client TypeScript package.
Request-response and SSE streaming over a single endpoint, matching @orpc/client's RPCLink.
- Request:
{"json": <input>}or{}(no input), with optional"meta"for special types - Response:
{"json": <output>}(meta omitted when empty) - SSE: Auto-detected via
ProcedureStream::size_hint()— single-value returns JSON, multi-value streams SSE events (message,done,error)
REST-style routing with Route metadata, path parameter extraction, and plain JSON responses (no envelope).
rpc— RPC encode/decode,execute_rpc,execute_rpc_autosse— SSE event formatting,SseStream, subscription detectionopenapi— Route matching, OpenAPI request/response handlingmeta— Meta array parsing for special type reconstruction (Date, Set, Map, etc.)