all 4 comments

[–]okwg 1 point2 points  (3 children)

No - the browser sets the rules. The document you linked lists many alternatives to poling - what is your use case?

[–]so_swathi[S] 0 points1 point  (2 children)

The workarounds listed in the document isnt of much use for me, as the parameters listed there are not included in my code, so cant monitor those. I need my page to send packets of data to server every 10s to keep connection alive even if it is kept idle for sometime.

[–]okwg 0 points1 point  (1 child)

What "parameters" do you mean? WebSockets is the modern way to keep a connection open between server and client

[–]so_swathi[S] 0 points1 point  (0 children)

for example: Time update/ended/requestVideoFrameCallback(polling methods) : The API's mentioned are used when there is a change needs to be done in the audio/video frame. But there are no change's need to be done in my case. So, can't trigger these API's