6 ms·
Show HN: TalkTalkTalk – An easy-to-install small chat room, with chat history
- josephernest 10y agoeveryone is discussing there http://185.164.138.19:7311/ http://185.164.138.19:7311/ (live demo), so nobody is discussing here :/
- equasar 10y agoSomeone crashed the server haha.
- josephernest 10y agoVery funny indeed :) Someone can be very very very proud of crashing my super-low-end 6€/year sandbox VPS with 256 MB of RAM... Waw, he's probably a very good hacker :)
- fiatjaf 10y agoJoseph was very angry because everybody were using the name "joseph" yesterday. Don't be angry!
- josephernest 10y agoi wasn't angry actually, maybe the angry "joseph" was another one ;) this troll session helped me to think about flood control, etc.
- rpdillon 10y agoThis 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.
- mentos 10y agoha yea but also an example that the last 20% is 80% of the work the chat right now needs features to prevent abuse
- josephernest 10y agototally true: abuse/flood control will be the next additions. ideas welcome about how do to it.
- saint_fiasco 10y agoWhat about ROBOT9000? https://blog.xkcd.com/2008/01/14/robot9000-and-xkcd-signal-attacking-noise-in-chat/ https://blog.xkcd.com/2008/01/14/robot9000-and-xkcd-signal-a...
- flukus 10y ago> the chat right now needs features to prevent abuse Does it? It sounds like this is built for internal corporate/team use where this isn't a problem.
- ausjke 10y agoadd abuse control, log archive, image inserting then it will be golden
- alexdumitru 10y agoYou should add some antispam, at least. I was able to keep your server down by using only this: > setInterval( function () { for(i=0;i<=9999; i++) { ws.send(JSON.stringify({ type: 'message', username: $('#username').text(), message: 'seems like the ws server is fucked. stop spamming' })); } }, 1000);
- josephernest 10y agoThis 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 :)
- vmorgulis 10y agoI like a log the design. https://github.com/josephernest/talktalktalk/blob/master/talktalktalk.html#L268 https://github.com/josephernest/talktalktalk/blob/master/tal... I think you could escape the text from #writing before sending it. http://stackoverflow.com/a/4835406 http://stackoverflow.com/a/4835406
- josephernest 10y agoWell 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 :)
- josephernest 10y agoThanks @alexdumitru for pointing me this. I implemented a basic flood control (https://github.com/josephernest/talktalktalk/commit/43877bd10deb478343b48d721d418d8fedb91efb 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.
- mrjustaine 10y agoIs it open for bots?
- josephernest 10y agoYes. You can talk in this chat with JS : ws.send(...).
- pasbesoin 10y agoThank 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.