I have a connector that will call a RESP API using cURL and PHP.  I need to call one method every second to check for new messages and then process them. I used the following 2 approaches to handle the messages   AJAX Polling using SetInterval(): cal...
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 implemented server-sent events to receive messages from the server. I describe how I implemented it on another question  Now I am trying to run it inside a shared worker to prevent the user from opening multiple connections to the servers via multi...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.