This program consists of a server and a client for the ChitChat messaging application
- run
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative grpc/proto.protoin the root of the project
- Open a terminal and navigate to the server directory (e.g.
cd server) - Start the server by running the appropriate command (e.g.
go run server.go). - Open another terminal and navigate to the client directory (e.g.
cd client) - Start the client by running the appropriate command (e.g.,
go run client.go <username>), Where<username>is the desired username for the client. - Once the client is connected, you can type messages in the client terminal.
- The messages you type will be streamed to the server and broadcast to all other connected clients.
- Other clients will see the messages in their respective terminals.