KB1RD / matrix-notepad

A buggy way to collaborate on text documents using the Matrix protocol. When it works, consider this the Matrix Console of collaboration!
https://matrix-notepad.kb1rd.net/
GNU General Public License v3.0
67 stars 1 forks source link

Send events less often #26

Open friedger opened 3 years ago

friedger commented 3 years ago

Using an element hosted server, I see 429 errors:

Object { errcode: "M_LIMIT_EXCEEDED", name: "M_LIMIT_EXCEEDED", message: "Too Many Requests", data: {…}, httpStatus: 429, stack: "" }

The app should be nice to home servers :-)

KB1RD commented 3 years ago

Currently, Matrix Notepad will send aggressively until it hits the rate limit. Once it's been hit, it merges edits together (if that's possible) and sends once the rate limit timeout has expired. That being said, it would be good to have options to control the sending aggressive-ness. For example, it may be desirable to send only after a whole word has been typed or a certain timeout has been reached. This should be placed in settings somewhere.