PHP / javascript live chat using too much bandwidth

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-05-27T03:25:32Z Indexed on 2010/05/27 3:31 UTC
Read the original article Hit count: 224

Filed under:
|
|
|

So I am learning about javascript, so I am making a live chat system with PHP and javascript. I have it so the javascript refreshes the log (each message gets logged in a file on the server), and it refreshes every second. Im using firebug to monitor the resource usage, and I see under the net tab each times its updated, and the bytes add up really fast. I know I can change it to update less, but is there a way that when a user on the other end I'm talking to, when the send a message, it gets sent to the server, then an alert gets sent to me saying that the chatlog needs to update somehow. That way it only updates when the log is updated. let me know, thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript