Skip to content

Latest commit

 

History

History
50 lines (24 loc) · 2.01 KB

README.md

File metadata and controls

50 lines (24 loc) · 2.01 KB

tcpchat

tcpchat is a Go-based chat server that utilizes TCP connections to facilitate communication between users. It provides functionality for user registration, maintains a user IP map, allows the creation of groups, and efficiently routes messages to other clients.

Untitled-2024-05-05-1539

Features

  • User Registration: Users can register themselves on the chat server.
  • User IP Map: Maintains a mapping of users to their respective IP addresses.
  • Group Creation: Users can create groups for specific discussions.
  • Message Routing: Efficiently routes messages to appropriate clients based on their intended recipients.

Design/Plan

Here's an overview of the overall design

Following diagram illustrates the actions to be performed upon receiving messages conforming to these specific formats, and also covers the database design

Screenshot 2024-05-06 at 8 03 33 PM

Here are the various channels to be used for communication across goroutines, and hence... users 😊

Screenshot 2024-05-09 at 12 55 40 AM

Demo

Here's a quick demo

Untitled.1.1.mp4

https://www.veed.io/view/e3befc40-1007-44aa-80ba-bc3c7b364df8?panel=share

Group Chat

Screenshot 2024-05-09 at 10 24 32 PM

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.