Skip to content
/ grpchat Public

Baby steps in Go by implementing a chat service

Notifications You must be signed in to change notification settings

0gap/grpchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing out grpc and Go.

A simple chat client server implementation. My baby steps with Go.

Server

In project root folder, run go build and run executable. Executable flags:

  • -p: port to which server is listening

Client

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 room
  • sc <chat room name>: Select chat room
  • s <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.

References

About

Baby steps in Go by implementing a chat service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published