Getting Started with the Long Survey

I would like to start implementing some “long polling” methods on my website.

Basically I need a main function that updates the list of HTML, whether new data was added to the database.

For my installation, I have a VPS server with a LAMP range. I know PHP, JS, and I am familiar with Unix systems.

What would be the right technology to achieve long-term survey results?

Thanks so much for any inputs.

+4
source share
1 answer

One solution is socket.io , which is based on node.js and makes it very easy to use web sockets and a long poll for real-time updates. You will have to use JavaScript, although for the server side, but it seems that everything is in order with this.

Some related articles and discussions:

+6
source

Source: https://habr.com/ru/post/1401647/


All Articles