I need to run a script that updates the user's browser once every second. My need is a one way communication from the server to the client.  To do that, I implemented server-sent events polling from my server to the user's client.   The probl...
I'm working on a project utilizing Server-Sent-Events and have just run into something interesting: connection loss is handled differently between Chrome and Firefox.  On Chrome 35 or Opera 22, if you lose your connection to the server, it will t...
I have an AngularJS app with the following controller.  It worked fine with GET on regular JSON resource and manual request for updates, but I cannot make it work with Server-Sent Events.  The problem I am facing is that after I receive an SSE event...
I'm currently building a Chat just for fun. I've never done it before, and I did in in general to try out the EventSource API (Server-Sent Events) in JavaScript. I just heard of it about 3 days ago and I thought it was interesting and far eas...
I've got a block of code here that uses HTML 5 SSE - the EventSource object, which lets a php script push updates to the webpage. However, I'm interested in also passing parameters to the script. How can I do that?   Here's the code:  if(...
I tried to get SSE technology and  couldn't resolve one trouble.   Always  triggered two event onmessage and error. I have getting valid date and simultaneously error message. Why this happening and how to resolve this ?   How to prolong live tim...
I have a node service that streams data via SSE (https://www.npmjs.com/package/sse-channel). I would like to loadtest this service my making 'n' concurrent connections, i tried the "loadtest" npm module but since we are dealing with s...
I'm currently looking into using Cesium as a way of visualising data for a personal project, and real-time updates would be a great thing to be able to do.  Reading the wiki, I found this section which outlines how dynamically updating objects in...
I've looked around and it seems as if all the ways to implement SSEs in Node.js are through more complex code, but it seems like there should be an easier way to send and receive SSEs. Are there any APIs or modules that make this simpler?...
I want to know how to close a server-sent events via JavaScript. Below is my dummy code:  var ser=new EventSource("path"); ser.onmessage=function(ev){ if(!ev)    //want to close HERE!! else    console.log(ev); }...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.