A simple and efficient library implemented HTML5's server-sent events by PHP, is used to real-time push events from server to client, and easier than Websocket, instead of AJAX request.
Hi, sorry for this noob question. When this $shouldStop variable be true? :) I'm trying to implement this condition taken from your sample demo but I don't fully get. BTW, I'm currently using your package in Swoole. Thanks again.
$shouldStop = false;
if ($shouldStop) {
throw new StopSSEException();
}
Hi, sorry for this noob question. When this
$shouldStop
variable betrue
? :) I'm trying to implement this condition taken from your sample demo but I don't fully get. BTW, I'm currently using your package in Swoole. Thanks again.