I’m new to server sent events and I’m trying the MSDN laid-out method of going about server sent events; with no luck.
No errors and no data seem to be received by my small HTML file’s embedded segment of Javascript. I don’t know if the problem is that my PHP script isn’t functioning properly either.
I uploaded the following HTML and PHP scripts to my friend’s server and viewed the HTML file in my Chrome browser.
These two files are hosted on my friend’s server in the same directory. I successfully navigated to and viewed the HTML file (test.html)
test.html