Angular client library (v1.1.1) for NgGoRPC, enabling high-performance, bidirectional gRPC over WebSockets with Angular >=14 and RxJS >=7. Handles WebSocket connection management (reconnection, keep-alive), protocol framing, stream multiplexing, and integrates with ts-proto generated code. Built for Angular CLI workspace; provides manual instantiation of NgGoRpcClient for flexible lifecycle control. Monthly releases.
npm install nggorpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a NgGoRpcClient with config, connecting, and making a unary RPC call with ts-proto generated definitions.
Always inject NgZone and pass it to the constructor: new NgGoRpcClient(ngZone, config).
Create a transport per service or per component, not a global singleton transport.
Use manual instantiation with `new NgGoRpcClient(ngZone, config)` instead of relying on deprecated Angular service providers.
Ensure the backend expects `Bearer <token>` in the `authorization` header, or modify the client source.
Instantiate NgGoRpcClient inside an Angular service or component using `inject(NgZone)`.
Ensure you inject `NgZone` from `@angular/core` and pass it to the constructor.
Update to @nggorpc/client >=1.1.0 and use the `connectionState$` observable instead.
Run `npm install @nggorpc/client` and ensure your Angular project can resolve the package.