ModuleRpcProtocolClient

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.

see

ModuleRpcProtocolServer

license

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.

Index

Interfaces

Functions

Functions

getRpcClient

  • getRpcClient<serviceDefinition>(serviceDefinition: serviceDefinition, options: RpcClientOptions): ModuleRpcClient.ServiceMethodMap<serviceDefinition, any>
  • getRpcClient<serviceDefinition, ResponseContext>(serviceDefinition: serviceDefinition, options: RpcClientOptions & object): ModuleRpcClient.ServiceMethodMap<serviceDefinition, ResponseContext>