i' tring to make chat like facebook chat :)
i'm using this requests like
Here To Get Room Users And roomBody
$('.room_users,.room_body').each(function () {
var page = $(this).attr("page");
var room_id = $(this).parents('.room').children('.roomy_id').attr("value") ;
var url = page+room_id ;
window.setInterval(function () { $(this).load(url);}, 200);
});
Here To Get Room Lists
$('#room_list').each(function () {
var page = $(this).attr("page");
var url = page ;
window.setInterval(function () {
$(this).load(url);
}, 60000);
});
as you see my requests send every 1 second but not all requests return 202 status
many time it return 404 notfound
And Some time request send twice every 1 sec