Skip to content

Real-time chat application built with pure Go and gRPC

Notifications You must be signed in to change notification settings

songvut365/live-chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Real-time chat application built with pure Go and gRPC

Topics

Resources

Stars

Watchers

Forks

Languages