I have a chat on my page. I send an AJAX post every 5 seconds to answer.
Something like an infinite loop on the server.
PHP server side:
$ i = 0 while (! $ Answers = checkNearex () and amp; $ i ++ <1000) {sleep (1); } Echo json_encode ($ replies); Go out; Wrong view?
I think that possibly there are numbers of solutions. You can see the polls for a long time (what you basically are doing).
Another option is to use something like XMPP in which some JavaScript clients are
No comments:
Post a Comment