This is a grpc chat resource, or this is a biderectional streaming implentaion.
Case: You make 2 or more users in 1 chat room.
- Clone this repository
- Run this command:
yarn install
- Make 3 sessions terminal and split it
- In session 1 run this command (this command to run the server):
yarn start
- In session 2 and others you make a user, run this command (Replace "username" maybe like "Yadi"):
yarn client <username>
// example
yarn client Yadi
- In session 3 and others you make a user, run this command (Replace "username" maybe like "Budi"):
yarn client <username>
// example
yarn client Budi
It's done, start your case. Chat user to other user 😄.