is there any good polling method that does not use setInterval
is there any good polling method that does not use setInterval
websocket;
setTimeout can also be polled;
setInterval causing a crash should be a problem with your code structure
1. Can be changed to websocket
2. Write timer in the form of setTimeout recursion (this is more accurate)
3.setInterval causes the server to crash. You can call the timer repeatedly. You can see whether the request is repeated by F12. The code problem is not the problem of timer.
personally, I think websocket will be very good, and both sides can push messages actively
.Previous: How to configure vue cli3 Packaging
error: rendering error: "TypeError: cannot read the undefined attribute replace " does this method need to be defined? how to define ...
settimeout write polling how to write the kind of long polling there are specific solutions to introduce ...
is there any document of the Great God meeting that can t be found in detail? if so, tell me whether I have to write this method at the back end after I have finished the previous paragraph ....
how can the longitude and latitude requested by Wechat s public platform geographic location interface be translated into an address accurate to the city I wrote it in vue. ...
use the Wechat interface to get the geographic location, and then what will pop up? what bank wants to get your geographic location? there are two options below whether you do not want him to pop up this box ...