There is a limit to the number of times you can / should connect to the streaming API endpoint. Is your code creating a new connection every time?
Unfortunately it is not possible to see what your code is doing from the page you’ve posted a link to here, as obviously it only shows the rendered result rather than what your PHP is doing on the other side.