I have used an EventSource method to get online status of active users on my website. In this following JavaScript code is inserted in every page  var source = new EventSource("set_online.php");  Thus this code is executing set_online.php fil...
I have a page that immediately starts streaming events upon load, via an EventSource. To speed up the start of that stream, I'd like to use HTTP preload meta tags. But when I add this to my page:  <link rel="preload" as="fetch"...
I'm trying to implement Server Sent Events using Spring SseEmitter as described in this Youtube video.  I'm able to initiate the event stream and receive the data from the server sent event.  However, I can see multiple EventStream type reque...
I am attempting to use EventSource to create a live connection chat 1 to 1. I have my event source set up and from what developer tools is telling me, it is open and working however the response data is not being displayed from the PHP file.   PHP:...
I have an endpoint that accepts text/event-stream, it basically sends two different types of events: stats and result. When the server sends result event and closes the connection.  The problem is that the browser retries the connection because of th...
I've been looking at using EventSource to push server events to the client, but I need the client to be able to identify itself so it doesn't just get every event of every client. I am trying to use cookies to achieve this, but somehow the co...
How can I catch the http status code of a failed EventSource connection?  function onError(event) {   console.log('request status code?'); }  const source = new EventSource('url', { withCredentials: true }); source.addEventListener(&#...
My script reads EventSource, and on a message it will get some line data from a variable. That variable will be a array, my script breaks the array down and for each point it flips the x with the y value. It then sends each point as a post request. I...
I have some kind of problem when starting in PhpStorm debugging application.   When I access URL where I debug my application there is additional event source request (SSE) made for notifications system. But when debugging is working it causes a prob...
Is it possible to set the Last-Event-Id header of an EventSource ? I have a simple chat app that keeps the messages cached. When I connect, I send all the chat since the Last-Event-Id, or all of them if it is not provided.  Since I keep the messages,...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.