Small HTML5 SSE library using PHP and Javascript.
You just have a couple of things to setup the library in your project.
- Define command line in file
sse.task.php. - Include the
SSEvariant you need in yourfront-endfile. - Include the
SSEclientJavascriptcode in yourfront-endfile. - Enjoy! 😁
There is two variants of the project.
- One that output
JSONformatted data. - One that output
RAWdata.
The output will get scrolled automatically!
You can see the result for this run, when I'm exporting a database using pg_dump.
I took the idea from this website: http://qnimate.com/implementing-push-technology-in-web-sites/.
Feel free to contribute to this project by openning issues and pull requests.
You can reach me on Twitter by using @Jiab77.
