A gRPC-Web client library for Arista CloudVision that converts gRPC-Web calls into RXJS Observable streams. Version 5.0.2, release cadence is periodic with minor releases. Key differentiators: designed specifically for CloudVision frontend data access, wraps gRPC-Web with RXJS for reactive data handling, requires ts-proto for protobuf generation, and exposes utilities like fromResourceGrpcInvoke for streaming device inventory and other CloudVision resources.
npm install cloudvision-grpc-webNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates using fromResourceGrpcInvoke to create an Observable stream for device data from CloudVision, with auth headers and error handling.
Migrate to ts-proto generated descriptors; update imports and use fromResourceGrpcInvoke with service descriptor objects.
Spread the request message and descriptor's requestType: request: { ...yourMessage, ...ServiceDesc.requestType }Always subscribe to both data and messages observables, or use operators like firstValueFrom to convert to promises.
Use fromResourceGrpcInvoke instead.
Ensure you have ts-proto installed and protobuf definitions generated: protoc --ts_proto_out=./gen --ts_proto_opt=outputServices=grpc-js ...
Pass a custom transport option: import { GrpcWebFetchTransport } from '@protobuf-ts/grpcweb-transport' and provide it in options.Always call .subscribe() on the returned observables, or use firstValueFrom() to get a promise.