Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 930 Bytes

README.md

File metadata and controls

43 lines (32 loc) · 930 Bytes

Live Chat App

Real-time chat application built with pure Go and gRPC. It allows users to join chat rooms, send messages, and leave the chat in a synchronous manner.

Getting Started

Server

go run app/cmd/server/main.go
2023/12/25 23:52:29 gRPC Server Listing on: localhost:50051...

Client

chat-client

go run app/cmd/client/main.go
Enter username: doe
Enter chat room: manga
[server] : 'doe' join the chat
[doe] : hello, world
[jack] : hi doe
...
[doe] : /exit
[server] doe left the chat

buf curl

buf curl http://localhost:50051/chat.v1.ChatService/JoinChat \
--schema ./app/internal/grpc \
--data '{"chat_room":{"members":[],"room_id":"manga"},"user":{"user_id":"5","username":"jack"}}' 

Reference