/grpc-bidirectional-streaming-example

example for creating a grpc bidirectional stream

Primary LanguageGo

grpc-bidirectional-stream

Provide Example client and server code for bidirectional streaming using grpc.

Dependencies

  • protoc-gen-go
go get -u github.com/golang/protobuf/protoc-gen-go

Build

Protobuf

cd pkg/proto
protoc *.proto --go_out=plugins=grpc:.

Run

Server

  • Run the server process
go run cmd/server/main.go

Client

  • Interact with the server process
go run cmd/client/main.go