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...
While in other questions people claimt EventSource is fairly well documented I have found it to be more implied then explicit in some cases.  My understanding is that when you initialise an EventSource object in JS it opens a connection to your serve...
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'm using server-sent events in order to execute queries on your database. The server streams the stats in realtime with stats events and when the query is executed, it sends result event with the data and closes the connection.  You can test it...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.