Skip to content

Latest commit

 

History

History

grpc-kotlin-example-chatserver

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

grpc-kotlin-example-chatserver

A simple command line chat server written using both bidirectional & server streaming gRPC.

Build the parent project. From the repo root, run

./mvnw clean package

Start the server

java -jar grpc-kotlin-example-chatserver/target/grpc-kotlin-example-chatserver.jar server

From another shell, start a bidirectional streaming client

java -jar grpc-kotlin-example-chatserver/target/grpc-kotlin-example-chatserver.jar client

From the third shell, start a server streaming client

java -jar grpc-kotlin-example-chatserver/target/grpc-kotlin-example-chatserver.jar clientSS

Big thanks to Björn Hegerfors and Emilio Del Tessandoro for putting together this example!