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 😬 ).
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