Is there any alternative to the websockets for using in shared hosting
ajax, javascript, php, real-time
Solution
If your shared hosting provides PHP support, you can use one of the WebSockets libraries in PHP:
- Ratchet
- phpwebsocket
- PHP-WebSockets
For installing Ratchet, read my answer on how to install Composer on a shared hosting.
Alternatively, you can install Node.js on a shared hosting using my project Node.php.
Problem
Is there any alternative for the websockets to use in shared hosting? I know about node.js, socket.io, Express.js but Can't use them in shared hosting. So, if there is any alternative used for making a realtime website then tell me.