@tripley-kit/xrpc-runtime
v1.2.0
Published
Tripley xRPC TypeScript runtime for Rust-compatible generated clients
Maintainers
Readme
@tripley-kit/xrpc-runtime
TypeScript runtime for Tripley xRPC clients that speak the Rust-compatible v1 runtime protocol.
import { createWebSocketXRpcClient } from '@tripley-kit/xrpc-runtime';
const client = createWebSocketXRpcClient('ws://127.0.0.1:54322');
await client.connect();
const [readerId] = await client.resolveInstanceIds(['EMVCardReader']);
await client.call(readerId, 2, []);
await client.goodbye('done');The transport layer moves complete binary MessagePack envelope frames. WebSocket is implemented first; WebView2 and Tauri can be added by implementing the same XRpcTransport interface.
