I have been developing a nodejs server to provide server-side-events for a new website I am developing in HTML5.  When I telnet to the server it works correctly, sending me the required HTTP response headers followed by a stream of events that i am p...
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 am trying to communicate with a server using an API.  to make it easier I wrote a script that will communicate the API using a php script.  My goal is to make a query to the API every second to see if there is new message in their queue.  I was adv...
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 need to get Server-sent-events working with Grails. I feel like I am close, but just not quite there. The JavaScript request successfully reaches the controller, but it throws an error every time. It keeps retrying once every 2 seconds or so (proba...
Currently I'm updating my client solution to SSE. It's based on Codeigniter and client using javascript. I'm new to SSE. I have done below code in Rest API controller.  function server_sent_events_get()     {         while (true) {...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.