Skip to main content

Module client

Module client 

Source
Expand description

TypeScript client generation.

Generates client interface and implementation for making caller-visible RPC calls. Each generated method issues one logical call, which may map to one or more request attempts at runtime if retry/session recovery is involved. The client uses the canonical service schema table for request/response encode/decode. No method-specific serialization code is generated here.

Functionsยง

generate_caller_interface
Generate caller interface for making caller-visible RPC calls to the service.
generate_client
Generate complete client code (interface + implementation + connect helper).
generate_client_impl
Generate client implementation.
generate_connect_function
Generate a connect() helper function for WebSocket connections.