AJAX Polling Frequency - To long poll or not to long poll?

后端 未结 2 1785
无人及你
无人及你 2021-02-13 11:16

I\'m building a component of a web page that needs relatively constant database polling. I can see two different approaches for this, and I\'m wondering if one of them is better

2条回答
  •  情深已故
    2021-02-13 11:43

    You can also look at websockets, part of the newest browsers (or emulated via a Flash file you drop on your page)

提交回复
热议问题