Skip to main content

Module client

Module client 

Source
Expand description

TypeScript client generation.

Generates client interface and implementation for making RPC calls. The client uses the service descriptor for schema-driven encode/decode — no serialization code is generated here.

Functions§

generate_caller_interface
Generate caller interface (for making 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.