AdamCaine
11-28-2004, 09:10 PM
My plans are to make a chat room for a mud style game. I also would like to use the same script for a chat room for out of character conversations outside of the mud. Not a message board, but a live, real-time chat.
I've been looking into this for a while now, and I've even purchased a few books that might help me. The problem is that all the information out there is either conflicting or is just not detailed enough for me to get a good grasp on the subject.
My language of choice would be php, but I'm open to suggestions.
What I've seen so far is that utilizing sockets is the best way to go. I just open up a port and have the script listen to any activity on that port. When a user posts data, then the script instantly append and reloads the client's chat.
I'm still not 100% on how this works, but I think it calls for an infinite loop that listens to the port. That's a little scary too me. Too many problems and it seems like way too much bandwidth. I may be all wrong about this however.
Anyone else have any methods they might recommend?
I've already tried a meta-refresh style chat, and that's out. It was way too annoying to have the screen refresh itself, and it also had some strange bugs when a lot of people were talking at once.
Anyway, any input would be appreciated.
I've been looking into this for a while now, and I've even purchased a few books that might help me. The problem is that all the information out there is either conflicting or is just not detailed enough for me to get a good grasp on the subject.
My language of choice would be php, but I'm open to suggestions.
What I've seen so far is that utilizing sockets is the best way to go. I just open up a port and have the script listen to any activity on that port. When a user posts data, then the script instantly append and reloads the client's chat.
I'm still not 100% on how this works, but I think it calls for an infinite loop that listens to the port. That's a little scary too me. Too many problems and it seems like way too much bandwidth. I may be all wrong about this however.
Anyone else have any methods they might recommend?
I've already tried a meta-refresh style chat, and that's out. It was way too annoying to have the screen refresh itself, and it also had some strange bugs when a lot of people were talking at once.
Anyway, any input would be appreciated.
