ipfs-grpc-client
Version:
A client library for the IPFS gRPC API
15 lines • 747 B
TypeScript
/**
* Bidirectional streams are many-to-many operations so returns a sink
* for the caller to write client messages into and a source to read
* server messages from.
*
* @param {import('@improbable-eng/grpc-web').grpc} grpc - an @improbable-eng/grpc-web instance
* @param {*} service - an @improbable-eng/grpc-web service
* @param {import('../types').RPCOptions<any>} options
* @returns {{ source: AsyncIterable<any>, sink: import('it-pushable').Pushable<any> }}
**/
export function bidiToDuplex(grpc: typeof import("@improbable-eng/grpc-web").grpc, service: any, options: import('../types').RPCOptions<any>): {
source: AsyncIterable<any>;
sink: import('it-pushable').Pushable<any>;
};
//# sourceMappingURL=bidi-to-duplex.d.ts.map