AntonioVdlC / chat

:speech_balloon: - A little chat in Go!
https://simple-go-chat.herokuapp.com
MIT License
1 stars 1 forks source link

Optimistic message updates #2

Open AntonioVdlC opened 7 years ago

AntonioVdlC commented 7 years ago

Right now every message is sent to the server and then sent back to every client (even the one that sent it) before being painted in the app.

Ideally, the messages sent by a user must be painted directly in the app (and then be confirmed once it comes back from server). That change will allow to deal with errors, retries, and confirmations (à la WhatsApp I guess 😬 ).

Copied from: https://github.com/efrei-int/chat/issues/19