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

Server Option:? #56

Open
miqumi opened this issue May 11, 2023 · 2 comments
Open

Server Option:? #56

miqumi opened this issue May 11, 2023 · 2 comments
Labels
good first issue Good for newcomers

Comments

@miqumi
Copy link
Contributor

miqumi commented May 11, 2023

Hey! I really love termchat in the state it is rn.
But the scenario i am experiencing complements the use of a server ( dont miind my english it is dogwater..!!?! ))
So everyday when my friend and I come back from school we usually chat and exchange some files. (we live in the same apartment so we share a LAN)
We were using termchat for a while, but sometimes we start our computers at different times, so we cant leave a message and get on our own business , we have to wait until each of us comes online and then chat.

a simple fix would be to have a config that allows termchat to connect to a server which stores all the messages and files sent .
it doesnt have to be necessary, when the client does not find a server, it resorts to its normal way to exchange.

If you can do it, please also make an option for the server to sync the chat with a text file everytime a client exits chat, and to send the textfile to a client when it joins chat, and to load the textfile automatically whenever the server starts

please dont tell me to use discord lol, it's performance is crap + the LAN begins at my home and isnt really strong on my friend's side going through two whole rooms.

Thanks!!

@lemunozm
Copy link
Owner

Hi @miqumi, it's very cool you use termchat intensively 🎉. I think the feature you propose is very useful. Nevertheless, I'm in only maintenance mode with this project. But I'll be happy to review and support a PR with these changes.

I would implement the feature in the following way. You can start a termchat instance with a flag --archive (or similar), which behaves as another instance but stores anything it listens to from the network. When this instance is discovered will share its state with the new instance in the network. In your use case, this instance can be a new one, or any/both instances you are currently using. So this feature will consist on:

  • New CLI flag
  • Store everything read by the network. A simple way could be directly to store the raw messages.
  • When an instance in archive mode listen a HelloLan message it should respond with all previous messages stored by it after it responds with the HelloUser message.

@lemunozm lemunozm added the good first issue Good for newcomers label May 12, 2023
@miqumi
Copy link
Contributor Author

miqumi commented May 15, 2023

WOW HE REPLIED!!
thanks for the tag :D

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

No branches or pull requests

2 participants