šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

grpc-utils

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-utils

Useful helpers for grpc ops

1.0.27
latest
Source
npm
Version published
Maintainers
1
Created
Source

Grpc Utils

TODO: Grpc utils provides helper functions and classes for gprc operations

Api Reference

NameDescription
GrpcClientgrpc client helper
encodeMetadataEncodes Any data to be stored in grpc.Metadata
decodeMetadataDecodes data encoded with encodeMetadata
grpcLoader.loadProtoLoads a one proto file
grpcLoader.loadProtoLoads an array of proto files

GrpcClient

GrpcClient aims to reduce boilerplate code - writing method definitions for rpc methods.

GrpcClient will generate rpc methods defined in your proto to class methods. I.E SendAccountVerification defined in mail.proto - invoke via klass.sendAccountVerification(). Each Rpc methods are wrapped with Promises. Refer to docs for full example.

FAQs

Package last updated on 16 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts