Question regarding $.ajax?

Hi how can I make the ajax request until will not receive data for a while, I get responce in json format = code=error when I will receive response code=success then stop ajax request or cycle here how can I implement this (with jquery) ?
September 19th 19 at 13:25
3 answers
September 19th 19 at 13:27
Solution
You need to work with WebSocket, php if you write something out of the box there is no support, you can install phpDaemon, or it can be implemented in node.js

or if in php then each time the pen to start a function after receiving a response from the server, but it is better not to do
You don't get a right answer bro )
something like this ):
you need to work with the websocket if you write the php out of the box there is no support, you can install phpDaemon or can be implemented in node.js or if php every time the pen to start a function after receiving a response from the server is better not to do - Halle_Botsfo commented on September 19th 19 at 13:30
: or this: will rabotaetsya kada websocket ect or kada no it will not make website to atrust the query I need on the server phpjava or iquery as you can run on the server but read that roquero on the server nazivaetsa of noderes h nurse Testament if you delays your vkantakte it is so accurate Nada to restart the metadata in PHP each time, Nada. - mauricio.Wolff54 commented on September 19th 19 at 13:33
: : you did that clever? ))) - brock commented on September 19th 19 at 13:36
September 19th 19 at 13:29
and the homework done?
what are the lessons ? - Halle_Botsfo commented on September 19th 19 at 13:32
risovach.ru/upload/2013/01/mem/kakoy-pacan_8766030... - mauricio.Wolff54 commented on September 19th 19 at 13:35
September 19th 19 at 13:31
bf3535e045e84f19937add65f77e9571.jpg

Find more questions by tags JavaScriptjQuery