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

Message ordering #37

Open
QZAiXH opened this issue Jan 10, 2025 · 1 comment
Open

Message ordering #37

QZAiXH opened this issue Jan 10, 2025 · 1 comment
Labels
question Further information is requested

Comments

@QZAiXH
Copy link

QZAiXH commented Jan 10, 2025

Hi, I'm a front end noob trying to implement an ipfs based go chat app myself. The problem I'm currently having is if to ensure the sequentiality of the messages. May I ask how you solved this problem in your application?

@TheDiscordian
Copy link
Owner

Hello @QZAiXH ! IIRC messages can be out of order. This system is more of a prototype, I do plan on one day working on something a bit more robust but, this isn't it!

DiscoChat simply ensures messages aren't duplicates, and they're not super old.

It will also blindly trust other peers and ask for a backlog: https://github.com/TheDiscordian/disco-chat/blob/master/ui/backlog.js

They could lie about what the backlog is of course.

Sorry for the delay, please let me know if you have any more questions.

@TheDiscordian TheDiscordian added the question Further information is requested label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants