[nevermind I’m not working on it anymore]

I was working on a chat app earlier but don’t really need to use it anymore, thanks for all the help everyone, so since I can’t delete this post I guess I’ll just leave it like this. So uhh, bye.

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

Instead of a GET and POST request, if you want a simple chat room, I would say try express-ws, it’s a quicker and more efficient way of making a chat room like that (if it’s just a simple chat room)

I cannot see messages at the moment. I send a message and nothing will show still.

That’s because the server for the chat site automatically turns off after nobody is using it, so that’s why if you’re the 1st person to use it after a while it might take a while for you to be able to send a message.

Web-sockets could work but that just means the server would stay up for a long time and not only would there be lag but then the project hours would run out quicker so get and post requests are the easiest solution i can do.