Server sent events work, but with a massive time delay

后端 未结 4 1258
醉话见心
醉话见心 2021-02-15 22:23

Ill start off by saying this works perfectly on my local machine, the js example below connects to stream.php and receives a continuous update of the servers current time every

4条回答
  •  既然无缘
    2021-02-15 23:02

    Sleep is blocking the SSE. I too had the same problem. I was advised to use event driven programming.

提交回复
热议问题