Issue I wanted to see how many simultaneous SSE (aka EventSource) connections I could setup, before overloading my machine. But testing with Firefox (Firefox 18 or Firefox 20) it stopped at 6 connections: the additional connections give no error, but
Continue readingTag: server-sent-events
[SOLVED] Update authorization header in flux WebClient
Issue I’m trying to create a resilient sse (server sent event) client in reactive programming. The sse endpoint is authenticated, therefore I have to add an authorization header to each request. The authorization token expires after 1 hour. Below is
Continue reading[SOLVED] How do I know when to trigger a Server-Sent-Event?
Issue What I want to do I’d like to use Server-Sent-Events for notifications and another feature – I don’t need to go into detail for the other feature, but it requires real-time updates taken from a database just like notifications
Continue reading[SOLVED] EventSource for fixed seconds in Javascript
Issue I’m newbie to the feature of EventSource in javascript. As per my understanding the eventsource calls the api with stream content and gets the updates of data automatically without making any further calls. But I’m planning to make if
Continue reading[SOLVED] Websocket transport reliability (Socket.io data loss during reconnection)
Issue Used NodeJS, Socket.io Problem Imagine there are 2 users U1 & U2, connected to an app via Socket.io. The algorithm is the following: U1 completely loses Internet connection (ex. switches Internet off) U2 sends a message to U1. U1
Continue reading[SOLVED] consume Spring SSE with Xamarin
Issue I have a spring boot backend for which I want to implement an SSE Endpoint. This endpoint I want to consume using an App based on Xamarin Forms. I managed to implement some examples for both sides, however, I
Continue reading[SOLVED] WebSockets vs. Server-Sent events/EventSource
Issue Both WebSockets and Server-Sent Events are capable of pushing data to browsers. To me they seem to be competing technologies. What is the difference between them? When would you choose one over the other? Solution Websockets and SSE (Server
Continue reading[SOLVED] How create an endpoint for downloading a PDF and sharing the generation progress with Server-sent events
Issue I have an endpoint which allow the user to download a PDF. As the PDF generation usually takes more than 20 seconds, I would like to send to the frontend information about the PDF generation progress while we are
Continue reading[SOLVED] Adding Connection: keep-alive header is not returned to client in ASP.net
Issue Short Version I’m adding the response header: Connection: keep-alive but it’s not in the resposne. Long Version I am trying to add a header to an HttpResponse in ASP.net: public void ProcessRequest(HttpContext context) { context.Response.CacheControl = "no-cache"; context.Response.AppendHeader("Connection", "keep-alive");
Continue reading