i created apllication and i want to add chat, so i created a simple chat room, working on a file.
so everything working.
i check over the chrome and i saw that the ajax response is around the 400B.
so i check the chat in facebook and i saw that they use 1 request witch called "pull" and she is on Pending state until something happend(i have new message).
so how do i do that, how do i save many sends to the server.
my idea was that facebook simply preform some loop and until there is no new infomation, sleep for 1 sec, so the server do all the work slowly and the save the data, but i think there is better solution.
and way on facebook chat the request is in Pending and mine just get the result.
by the way, chrome get the type as undefined in facebook, and in my chat it is text/html.
(same deal for gmail, almost exacly the same..)
basically what im saying is that my chat do a lot of request to the server while any other normal chat (gmail, facebook) have a so much litile request...
thanks ahead experts!