Type alias StreamFactory

StreamFactory: ((ctx) => PromiseLike<RPCStream<Uint8Array, Uint8Array>>)

Type declaration

    • (ctx): 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 an RPCServer.

      Parameters

      • ctx: ContextTimed

      Returns PromiseLike<RPCStream<Uint8Array, Uint8Array>>

Generated using TypeDoc