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
SSE
variant you need in yourfront-end
file. - Include the
SSE
clientJavascript
code in yourfront-end
file. - Enjoy! 😁
There is two variants of the project.
- One that output
JSON
formatted data. - One that output
RAW
data.
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.