php-sse icon indicating copy to clipboard operation
php-sse copied to clipboard

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.

Results 8 php-sse issues
Sort by recently updated
recently updated
newest added

It works but always fire the result within 3 secs. How to implement this with real database which is just fire a new text if new data has been inserted?

[ApiController] [Route("/SSE/[action]")] public class SSEController : Controller { private static ConcurrentBag clients; static SSEController() { clients = new ConcurrentBag(); } [HttpPost] public async Task SSECallbackMsg() { await CallbackMsg("test"); } private...

Hi, I have a situation that I need to send ping only if there's no new data on the database. And ```php $event = new Event(function () use ($request, $response,...

I'm wondering the script below that I grabbed from Swoole website creates new connection or thread every couple of seconds and I don't like it. While yours is not which...

Hello, I have a symfony 4.4 project with v2 of your bundle installed. Unfortunately it doesn't work :-( I exactly used the example code you provided but the behavior is...

I use drupal CMS to create websites. If you do not know drupal, it is quiet similar to wordpress in terms of server requirements. Drupal also allows to integrate 3rd...

question

So in demo you use php -S to spawn a php's own little server on 9001, but this seems to be able to only talk to one client at a...

question

I read your docs but I don't really understand how I can send a message during a process. In my case, for exemple, I'd like to "dispatch/broadcast/push" (I don't know...

question