Mudsaf Posted April 15, 2013 Share Posted April 15, 2013 Hello, i have my shoutbox online http://mudsaf.info/shoutbox.php Its currently refreshing with session that checks if latest shout has changed. (Really bad method). What method you would recommend for refreshing since i want to use less bandwith than refreshing the whole shoutbox everytime. So if you understanded anything i tried to explain.Shoutbox updates every 2 seconds and checks if latest message has been updated. Uses only bits of bandwith. When there is new shout it updates whole shoutbox data using about 20kb data. Link to comment Share on other sites More sharing options...
Mudsaf Posted April 15, 2013 Author Share Posted April 15, 2013 Domain is changing atm http://mudsaf.info/shoutbox.phpORhttp://mudsaf.info/mudsaf/shoutbox.php Link to comment Share on other sites More sharing options...
Ingolme Posted April 15, 2013 Share Posted April 15, 2013 Is this an AJAX application? I'd suggest having PHP send only send the usernames and messages without all the HTML and then have Javascript read the data and put it into the page the right way. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 15, 2013 Share Posted April 15, 2013 I would suggest a longer refresh time also. You can use 150% less bandwidth just by changing the time from 2 to 5 seconds. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now