Ask your own question, for FREE!
Computer Science 22 Online
XxLuckyXx:

How do you code a text chat, like the one Question Cove uses for All Subjects?

men:

howie posted on how you do that

XxLuckyXx:

He did?

men:

yes scroll and find where howie posted it

Ultrilliam:

@men wrote:
howie posted on how you do that
They aren't talking about group chats on this site

men:

didnt howie like post how to bb codes and stuff yesterdat

men:

yesterday*

Ultrilliam:

They are asking how to make their own for their own site

XxLuckyXx:

I ALREADY KNOW BBCODE LOL

Trickjoker:

Well someone please teach me!

Ultrilliam:

As for how to make a chatbox, In essence, you can make one with the following: first you'll need a Websocket for the server and client to communicate, then you'll need front end code to handle the communication. When a new communication occurs from the server, post the line to the client. Have a text box that when hitting enter submits the message to the server. Optional: have a database to save the messages, so you can load them after the fact. Optional: have users to distinguish who sent what message Optional: have a database to store events so when a user falls out of sync with the events, the server can catch them up And that's how you would make a very basic chat box

XxLuckyXx:

Uhm, how would i make a server *smiling/nervouse emoji*

XxLuckyXx:

It's probably useful to be doing this with a non-moderated computer.

Ultrilliam:

@xxluckyxx wrote:
Uhm, how would i make a server *smiling/nervouse emoji*
Oh boy... Lol Maybe I'll make a tutorial at some point to make a basic chat box, unfortunately I don't have the time at the moment as I'm about to run out the door. Lol

XxLuckyXx:

Okay, well thanks Jay! I appreciate it.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!