Questions tagged [server-sent-events]

Server-Sent Events (SSE) are a a part of the HTML5 specification. SSE allows a uni-directional persistent connection between a client and server, such that the client makes only a single request and the server keeps pushing data to the client continuously, until the connection is closed.

Resources

1769 questions
0
votes
1 answer

Establishing SSE connection over https fails - How to resolve that

As far as I have understood, to establish an event stream one must create an event source object on the client passing it an endpoint to the server to register itself with. The server upon receiving this request, sets the response headers…
0
votes
1 answer

Java server not sending message events with OutboundSseEvent / JAX-RS server-sent event (SSE) service

I have set up SSE (server-sent-events) in a Java server. The client is built on VueJS and uses the EventSource package to receive events from the server. I am using the EventSourcePolyfill npm package…
GNG
  • 1,341
  • 2
  • 23
  • 50
0
votes
1 answer

Server Sent Events keeps restarting with new request

I have a very simple PHP Server Side Events controller (simplified for this question): $response = new StreamedResponse(function() { while (true) { if(connection_status() != CONNECTION_NORMAL) { die(); …
Christoffer
  • 482
  • 7
  • 32
0
votes
1 answer

Laravel how to capture event with Server Sent Events

The Laravel SSE(server sent event) is a great solution to push the changes to frontend, however, on the server side, we need to have an efficient way to keep track of the updated record(s) before sending notification to frontend. however, the SSE…
eversun
  • 53
  • 7
0
votes
0 answers

How do you stream results from Node/Express REST endpoint but with a delay on each document returned?

A bit of a background, I come from a Java background and I already got this problem working. However, I'm trying to transition to Node/Express/Mongoose for the same problem. To summarize, I have a REST endpoint to fetch a list of events (meetings,…
BigZee
  • 13
  • 1
  • 3
0
votes
1 answer

Handling large data sets on client side

I'm trying to build an application that uses Server Sent Events in order to fetch and show some tweets (latest 50- 100 tweets) on UI. Url for SSE: https://tweet-service.herokuapp.com/stream Problem(s): My UI is becoming unresponsive because there…
TechnoCorner
  • 4,879
  • 10
  • 43
  • 81
0
votes
0 answers

What determines how often a sever-sent-event is triggered

I am new to server-sent-events and copied the tutorial example from the w3 site. The html page: