Skip to content
ColdChat Client (chat app)
WaterZ69
WaterZ69
Made with
Node.js
Node.js
Published on May 31, 2022
  • #nodejs
  • #chat
  • #apps
  • #javascript
  • #node

IMPORTANT: click "show more"

chat app in node.js using socket.io

I've made many chat apps previously but I got inspiration for a simplistic-looking, console-based one from the previously trending "ctrl chat" (by

@blockowo
). I felt bad about its many serious security flaws and literally zero validation. Seeing it get destroyed by exploiters made me want to start working on a secure chat app with validation, backend word filters, powerful anti-spam, and a proper account system. (I've also been begged to make a console based one because people complain about school blocking repl pages blah blah)

So far I've made the basic security infrastructure and a simple layout, plus a powerful anti spam. This of course isn't finished and there are PLENTY of updates planned and coming soon.

―――――――――

Coming Soon:

  • more efficient validation process using socket IDs
  • captcha
  • ascii emotes
  • premium status with perks and whatnot
  • private chat rooms
  • your suggestions! (leave a comment)
694comments
OnlyAHuman
OnlyAHuman
1 week ago

Why did you use waterz_coldchat for all your variables, etc.

SkipThePrograming

i suggest add a shop xD

AleksanderCieni
AleksanderCieni
3 weeks ago

It doesn't work

AleksanderCieni
AleksanderCieni
3 weeks ago

yes

iSymbol
iSymbol
3 weeks ago

You have disconnected please re-run the repl

iSymbol
iSymbol
3 weeks ago

How this 1 line code works?

mudkipdev
mudkipdev
3 weeks ago

You really call obfuscating the entire code "making it secure"? Kinda goes against the whole point of open source

ljustus1
ljustus1
3 weeks ago

Is it just me or does this really look like a python project?

ekattan
ekattan
3 weeks ago

awesyum

Param34
Param34
3 weeks ago

I like it .it is awsome

natecraft66
natecraft66
3 weeks ago

can I like send multiple messagees without having to log in everytime?

Night-Bot
Night-Bot
3 weeks ago

67 Texts You Can Do Anything

IanChen4
IanChen4
3 weeks ago
Barrier
Barrier
3 weeks ago
GhaaliyahFatima
GhaaliyahFatima
3 weeks ago

hi

NeryJaimes
NeryJaimes
3 weeks ago

Hi

1BL1ZZARD
1BL1ZZARD
3 weeks ago

i want to contribute by pushing issues onto github or maybe reporting them on a discord server. how can i do so?

UtkMcpe78
UtkMcpe78
3 weeks ago

I have a request. Could you try to install your bad words filter repl into this?

DaCuteRaccoon
DaCuteRaccoon
3 weeks ago

why is it obfuscated?

hecker40
hecker40
3 weeks ago

If you are a hacker you can create private repls and nobody can view the code lol. You don't even need to obfuscate it...

LiamCurnutt
LiamCurnutt
4 weeks ago

this code is so ... AWESOME

WaterZ69
WaterZ69
shared an update4 weeks ago
updatesPost
  • added a security step
  • removed easter egg

――――――――――

Planned Updates:
  • captcha verification (solves basically all problems)
  • implement socket IDs
  • make different ban system
  • premium features and subscription
  • ascii emotes
  • private chat rooms
  • then I can deobfuscate code and you can skid it
DragonProgrammer
DragonProgrammer
4 weeks ago

it's all just one line XD

programjoe
programjoe
4 weeks ago

You should block certain links that ppl keep spamming.

BillyMays1
BillyMays1
4 weeks ago

image bro

CoderKidTiritru
CoderKidTiritru
4 weeks ago

We NEED BETTER login system also can u add like a premium version that people pay for like discord nitro

BillyMays1
BillyMays1
4 weeks ago

skull image

CWaterZ
CWaterZ
4 weeks ago

WaterZ is it possible for you and me to chat through this game?

Tofu42
Tofu42
4 weeks ago

nice

WaterZ69
WaterZ69
shared an update4 weeks ago
added an easter eggPost

can you find it?

Also I added a few things to anti spam because someone spammed ("spam" is an overstatement, it was slow because they probably use a 15-year-old pc)

jort57
jort57
4 weeks ago

if you used webockets then how come there is a refresh button? shouldnt websockets notify you when you receive a new message?

pro0grammer
pro0grammer
4 weeks ago

does it log you out to prevent spam? Also to filter chat, you can use Trie. I've heard of this concept in python and it's hard to implement in js but you can try.

MrVoo
MrVoo
4 weeks ago

It sends you to login when you send a message .-.

Midmoonlight
Midmoonlight
4 weeks ago

i don't get it

SachsTheBased
SachsTheBased
4 weeks ago

hi

SachsTheBased
SachsTheBased
4 weeks ago

hi

Omediscool
Omediscool
4 weeks ago

it banned me for saying fat...

Evanlicious
Evanlicious
4 weeks ago

If this program is more secure than

@blockowo
's CTRL CHAT, then what is the need for obfuscating your code? If it is truly secure, then you should be able to just have the un-obfuscated code on Replit.

Obfuscating your code doesn't make it secure, it just makes it harder to read and interpret by the people who could give good suggestions.

JGamez
JGamez
4 weeks ago

dose not work

matthew-teh-123
matthew-teh-123
4 weeks ago

can i ask a thing ? How to get string from console when i typing on it

KijetStudios
KijetStudios
1 month ago

I don't get it, I feel like i'm sending nothing when I click send message. and the only text that I see on the screen that looks like what someone else said was just "hola, 05/26, 23:58 (GMT-0): putas". But overall I think this can become really good, your just need to fix some things up.

RFL890
RFL890
1 month ago

i think it could be made more simple and minimalist (removing the giant ascii text for example), for a better experience, also showing the message you sent would also be nice. otherwide solid app!

KirillKuvaiev
KirillKuvaiev
1 month ago

норм

KamranHeral
KamranHeral
1 month ago

yoo

EpicRaisin
EpicRaisin
1 month ago

Why does it sign you out when you send a message?

joshyfishy22
joshyfishy22
1 month ago

poop

WaterZ69
WaterZ69
shared an update1 month ago
bugfix error fix whateverPost

fixed ".includes of undefined" error and all other errors associated with it

also i reobfuscated the code until I make the hard bans server side and set up a db storage system for bans instead of a temporary array that is reset every time you reset the server

TBUk
TBUk
1 month ago

I sent a message, and upon pressing the refresh button, I got an error that was just a wall of unreadable text because the code is obfuscated, but the error itself was “TypeError: i is not a function” at index.js, line 1, char 8563, and char 11475.

Might wanna check out why you’re calling what seems to be a variable as a function at some point. Might be a shadowed function, or mistype.

SamMooresh
SamMooresh
1 month ago

its just like hacking

SamMooresh
SamMooresh
1 month ago

bruh typing i havent even played man it already seems bad

CoopGood
CoopGood
1 month ago

How to send messages, e does not work

PaytonDePinho
PaytonDePinho
1 month ago

how do i send a message?

blockowo
blockowo
1 month ago

@WaterZ69
gonna need to add more to that filter:

image

generationXcode
generationXcode
1 month ago

use hashcash to prevent spam. I would have used that.

JakeyPeanut
JakeyPeanut
1 month ago

every time i sign up the password is "profanity" when my passwords are some numbers edit:nvm it was because i already signed up

SwaritChoudhari
SwaritChoudhari
1 month ago

there has to be a cencor thingy

boomerangBS
boomerangBS
1 month ago

this is so good !

Skiicats
Skiicats
1 month ago

Why is code obfuscated? What if I wanted to remix/change it for the better?

blockowo
blockowo
1 month ago

id HIGHLY reccomend having it clear the console whenever the user refreshes the chat board. either than that (and me not seeing my messages), seems pretty good.

V256
V256
1 month ago

WHY CAN'T I EVEN SEND MESSAGES?!

WaterZ69
WaterZ69
shared an update1 month ago
update: now it's mostly unobfuscated have fun looking at sourcePost

this will attract degenerate spammers this was such a bad idea lol

if you don't make server request in 90s it disconnects you (reduces the server's load because I unboosted it)

also if it lets you log in but doesn't say "success!" its bc u afk for too long and once you're disconnected you have to re-run the repl so you'll technically be logged in on the client side but not on the server side so basically you can't send message or anything

RithvikKandula1
RithvikKandula1
1 month ago

@WaterZ69
try using

image

(edit)nevermind, this is only for python

SammanthaLoper
SammanthaLoper
1 month ago

@Walker30263
sorry i just no got back from sports did you text me

Catboi-Tipsy
Catboi-Tipsy
1 month ago

Oh nice! Persistent login is here!

SammanthaLoper
SammanthaLoper
1 month ago

well hello people my day is going good but i do not no how to tell my crush that i have a crush on him and if you see this you no who you are

SammanthaLoper
SammanthaLoper
1 month ago

hello

TBUk
TBUk
1 month ago

Okay, now it’s better, but every time I send a message it says “good: message too long!” and kicks me back to the home screen. At least it sends the message now. I just have to re-login every time I send a message.

SammanthaLoper
SammanthaLoper
1 month ago

respond back please

SammanthaLoper
SammanthaLoper
1 month ago

i am guessing everyone is busy

SammanthaLoper
SammanthaLoper
1 month ago

how come no one is responding back to me

SammanthaLoper
SammanthaLoper
1 month ago

people how come no one is responding back

Catboi-Tipsy
Catboi-Tipsy
1 month ago

JESUS, why is all your code in ONE line?

derpylemonEX
derpylemonEX
1 month ago

nobody's chatting :(

Bree5000
Bree5000
1 month ago

it keeps making me relog in

hecker40
hecker40
1 month ago

lol try coding this in Python, I guarantee you the output will be better.

Also, why doesn't it work when I login, I have to login twice for it to work

InternetTerror
InternetTerror
1 month ago

To clear things up like sachsthebased is prob some low level skid dont frame me to be a person who cant code properly

@WaterZ69

SneakyChameleon
SneakyChameleon
1 month ago

Is there anything I can add you on such as discord to talk to you about coding and other stuff, I have some quesitons.

WaterZ69
WaterZ69
1 month ago

@TBUk
@inyourface3445
@CosmicBear
@Bree5000
@ShahadAl24
@Leandrin15
@Yashmit129

update: the problem should be fixed! have fun and thanks for pointing out the problem otherwise I wouldn't have noticed

WaterZ69
WaterZ69
1 month ago

update: I found what the problem is with messages not displaying, will be fixed soon. Sorry for the trouble!

inyourface3445
inyourface3445
1 month ago

Why doesn't it work? When I send a message, nothing happens (yes, I am pressing e).

Leandrin15
Leandrin15
1 month ago

I give this a 3/10 its a cool idea but it glitches alot when i write like 10 words it copies my sentence over and over againg and when i try to send a message it doesnt

WaterZ69
WaterZ69
1 month ago

@CapCodingExpert
why'd you (attempt) spam lol

Bree5000
Bree5000
1 month ago

how do i chat

Bree5000
Bree5000
1 month ago

bruh

SammanthaLoper
SammanthaLoper
1 month ago

hello

SammanthaLoper
SammanthaLoper
1 month ago

i am guessing everyone is busy

TBUk
TBUk
1 month ago

i said “hello everybody” and it gave me an error saying the message was too long, and then it kicked me to the login screen.

edit: yeah, I can’t send messages. It just tells me the message is too long no matter what I do, and my message never appears in the chat.

edit 2: now sending messages just sends me back to the home screen…

edit 3: 40 minutes later. Same error. It always says “good: message too long!” and kicks me back to the home screen. Also, the ascii art turns into whatever this is:

SammanthaLoper
SammanthaLoper
1 month ago

anyone going to respond back?????????????

c416618
c416618
1 month ago

helo