mhdnp1234 / grpc-example

grpc sample example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grpc-example

grpc sample example

What is grpc?

Usage

grpc can be used to call server methods directly from client (node or browser) and by doing so it reduce overhead of making rest api request or socket communication implementation. This is highly prefereale approach when there is binary data involved like high resolution images, audio, video etc. Google Assistant API is developed on top of grpc library.

To run this example, execute following commands.

npm install
node server.js
node client.js sample-name

// outout
Hello sample-name ☺☻♥♦

About

grpc sample example


Languages

Language:JavaScript 100.0%