This is a really good example of how you can obtain 80% of the value of huge, complex apps with 1% of the code. It feels like the open source/self-hosted/simple app market it is probably under-served. Chat is one example, but another is a small, simple 'social network' for a team, group of friends, or family.
This small chat is intented for a small team, not for global internet usage like I do here :) Usually in a small team there is no spammer, and if there is one, he's banned quickly from the team :)
But yes, I'm open to contribution about antispam / flood control. Constructive additions appreciated :)
Well the real cleaning / sanitizing part has to be done on the server... I'll work on this in the next weeks, after some other more important projects... This is just a proof-of-concept fun project anyway :)
Thanks @alexdumitru for pointing me this. I implemented a basic flood control (https://github.com/josephernest/talktalktalk/commit/43877bd1...), and now such a script doesn't work anymore. Of course you can then do another script that would automatically reconnect after being kicked out, etc.
Thank you. Look forward to playing with / using this.
Reminds me of using Jabber years ago with a couple of friends. Not for the protocol, but for the clean interface and essentially having "our own place".
Something I've a pretty strong hankering for, these days.