Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple chat coding exercise #4

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

simple chat coding exercise #4

wants to merge 33 commits into from

Conversation

rsouvik
Copy link

@rsouvik rsouvik commented Sep 30, 2024

@rsouvik
Copy link
Author

rsouvik commented Sep 30, 2024

Description: My commit messages are not that descriptive. Here is high level architecture:

  1. Server: I use a HashMap to save state about users based on socket/address. Server is not backed by persistent, if needed I can add persistent and have data backed by a db. Here, if we shutdown server, state is lost
  2. The server keeps listening for join requests and messages from clients and send back to other connected clients. I am using Tokio crate.
  3. Client: A client can send message to server using SEND . It can also leave whenever it wants to.

@rsouvik
Copy link
Author

rsouvik commented Oct 1, 2024

also both mypickly and rsouvik are just me; let me know if any other info is needed!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants