AbstractXan / gRPC-Chat

gRPC and terminal based chatting over same local network. Spin up servers and let your clients join in various chat-rooms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gRPC-Chat by AbstractXan

gRPC and terminal based chatting over same local network. Spin up servers and let your clients join in various chat-rooms.

Setup

go get -u github.com/golang/protobuf/protoc-gen-go

go get -u google.golang.org/grpc

Run server and clients:

Run instances from ./builds/

OR

Server

$ go run ./server/server.go

Client

$ go run ./client/client.go

Features:

  • Client login feature
  • Join existing group / New group creation.
  • Client logout on typing quit. Closes all readers and Writers.
  • Server could identify logouts and close client listeners and update client channels accordingly
  • Chats stored in global groups variables. Server sends all past messages to new clients for chosen group.

Possible addons:

MAC address validation in case of client side force quit.

About

gRPC and terminal based chatting over same local network. Spin up servers and let your clients join in various chat-rooms.


Languages

Language:Go 100.0%