A little chat site

Iv’e been working on a chat site called Yap Chat, simple name and I thought of it about a year ago and forgot about it for a while. Anyway, that’s basically it, if any of you guys have any suggestions. I could add them, I know it kinda sucks with only being able to see one message and it’s not live but that’s all I can do with my experience. The server is simply node js and each message is just handled by an http request.

is this set up as a static site? how does it work

Yeah its a static site, you type in a username and a message and you click send, you and others will be able to see the message by clicking the button at the bottom.

Its very simple and some feedback could help.

making the “show latest message” repeat on a setInterval would be a must. I am just spamming the “show latest message” to see new messages.

Thanks for the feedback, while doing that could cause some problems I could actually use web sockets instead. (Looping can cause server lag)

Okay, I didn’t know!

Just making it so it

A: doesn’t have to just be one message,
B: loads new messages automatically

will make it a real chat app!

Super cool what you have done :slight_smile:

I requested permission to edit the yap-chat code. I think I can at least make some of the CSS better, and the JS neater.

Thanks for all the feedback, maybe something i can do is put all the messages in an array instead of one value, so then multiple messages can be seen. But not infinitely. When the message thread reaches like maybe 10 it can reset. Then maybe character limits just incase.

1 Like

yes! I love that! You will need a for loop to handle the items, but I like this idea! (p.s. can I join)

I guess I could let you join to help with certain features, maybe we could go as far as to add chat groups. This was mainly a small little fun project I made to learn how servers work but I guess now we could both make it something kind of cool.

1 Like

thanks! I agree!

Also before i do the loop thing i need to work on the server so i’ll be working on THAT while u can take a look at stuff

1 Like

Do you have access now?

No…

Maybe try inviting me? My glitch username is MilesWK

Let me try on a new device

1 Like