- Preparing search index...
- The search index is not available
rpc_ts
ModuleRpcProtocolClient
Functions
getRpcClient
- getRpcClient<serviceDefinition>(serviceDefinition: serviceDefinition, options: RpcClientOptions): ModuleRpcClient.ServiceMethodMap<serviceDefinition, any>
- getRpcClient<serviceDefinition, ResponseContext>(serviceDefinition: serviceDefinition, options: RpcClientOptions & object): ModuleRpcClient.ServiceMethodMap<serviceDefinition, ResponseContext>
-
Type parameters
Parameters
-
serviceDefinition: serviceDefinition
-
Returns ModuleRpcClient.ServiceMethodMap<serviceDefinition, any>
-
Type parameters
Parameters
-
serviceDefinition: serviceDefinition
-
Returns ModuleRpcClient.ServiceMethodMap<serviceDefinition, ResponseContext>
This module provides a simplified interface for instantiating an RPC client. Under the hood, it is a thin wrapper around ModuleRpcProtocolGrpcWebClient.getGrpcWebClient, and it provides a gRPC-Web transportation protocol with JSON encoding/decoding. Other protocols could be offered here in the future, and getRpcClient would be used to easily choose between them.
ModuleRpcProtocolServer
Copyright (c) Aiden.ai
This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.