- Preparing search index...
- The search index is not available
@matrixai/rpc
StreamFactory: ((ctx) => PromiseLike<RPCStream<Uint8Array, Uint8Array>>)
Type declaration
-
- (ctx): PromiseLike<RPCStream<Uint8Array, Uint8Array>>
-
Returns PromiseLike<RPCStream<Uint8Array, Uint8Array>>
This is a factory for creating a
RPCStream
when making a RPC call. The transport mechanism is a black box to the RPC system. So long as it is provided as a RPCStream the RPC system should function. It is assumed that the RPCStream communicates with anRPCServer
.