Testing out grpc and Go.
A simple chat client server implementation. My baby steps with Go.
In project root folder, run go build
and run executable.
Executable flags:
-p
: port to which server is listening
In ./client
run go build
and run executable.
Executable flags:
-p <port No>
: server port-u <username>
: username with which you connect
Client is getting terminal input and recognizes 3 commands:
cc <chat room name>
: Create chat roomsc <chat room name>
: Select chat rooms <message>
: Send message to last selected chat
When a user has selected a chat room and sends a msg, server will send it only towards the user connections which have accessed the said chat room.