1,893
questions
0
votes
0
answers
18
views
Why aren't SSE messages automatically rendering in my app's live feed?
I'm building a CRM application that uses Server-Sent Events to receive real-time updates for new messages (pretty simplistic chat UI). While the messages update when I click on a user in the ...
0
votes
0
answers
4
views
Properly handle TransformStream on EventSource.close()
I'm trying to set up a SSE mechanism on my NextJS app to send messages from the backend to the client while some data processing is happening on the server.
I have setup a route endpoint like so:
...
-1
votes
0
answers
40
views
Getting Broken Pipe Error during SSE ping in Spring WebMVC
I am getting a Broken Pipe error during SSE ping in Spring WebMVC. I noticed that everything works when the connection is first established, but when it tries to send a ping, I get a broken pipe error....
0
votes
0
answers
39
views
Server Send Events connection is timing out in 45 seconds. Showing Cancelled for the API connection
I have a message passing application which uses producer/consumer model using Server sent events(Event-source-polyfill library)
Messages from producer are not making it to consumer.
I can see the ...
-1
votes
1
answer
37
views
server-sent-events(SSE) cannot re-establish the link. net::ERR_INCOMPLETE_CHUNKED_ENCODING
I am using springboot to develop the function of server-sent-events push to the browser. When I finish the development, server-sent-events connection can always be established for the first time, but ...
0
votes
0
answers
24
views
Not Receiving Data from a Server Sending SSE to Client in Flutter
I am trying to receive data from a server that sends updates every 5 seconds using Server-Sent Events (SSE) to a browser. My goal is to capture that data in my Flutter app and yield it in a function.
...
1
vote
1
answer
47
views
EventSource with bearer token
I am currently trying to setup a realtime list using SSE. Everything is working as expected except when it comes to querying data that needs authentication. I am using JWTs and have an axios ...
0
votes
0
answers
38
views
How can I pass "streaming" (i.e., Server-Sent Events) from a Blazor service back to the calling .RAZOR page?
I have a blazor application that I am using to have a conversation with MistralAI.
When prompted, MistralAI will use Server-Sent Events to "stream" data back.
On my .RAZOR page, after a ...
1
vote
0
answers
39
views
Server-sent events (SSE) aren't streamed in AWS ECS with Service Connect enabled for the task
I have a backend service that proxies STREAM from LLM to a frontend. Therefore, the frontend uses SSE to show a result dynamically - a typical scenario.
Running locally and being deployed on ECS ...
0
votes
0
answers
19
views
How does Jenkins request the backend SSE (server end event) interface and return real-time results to the browser?
I have a backend interface that receives SSE requests and can return real-time execution logs. I want to view the real-time logs in "Console Output" in Jenkins. How should I initiate SSE ...
0
votes
1
answer
27
views
Broadcast data only on POST request with dJango SSE Server Side Events
I am trying to broadcast SSE to all clients once the user makes a request.
I was able to get this basic example up and running
async def dashboard_oc_interface(request):
"""
...
0
votes
0
answers
31
views
SSE react '406 (Not Acceptable)'
I have some problem with react and django application.
I want to use SSE to let the two of them communicate, but I get 406 responses from the front end.
I think I fail when I try to connect.
I can't ...
0
votes
0
answers
27
views
ASGI for django not compatible with Server-sent-events?
I previously wrote an SSE (Server sent event) request using Django and it looked all right.
def event_stream():
"""
Generator function to yield messages.
&...
0
votes
0
answers
64
views
How to process "streaming response" or "chunked response" data from a streaming REST API endpoint with Blazor server-side using .NET 6.x?
With my Blazor application, I am hitting a REST API endpoint that produces both streaming and non-streaming results, depending on the endpoint I hit. The non-streaming endpoint is just standard JSON:
...
0
votes
0
answers
68
views
How to flush Server-Sent Events (SSE) message without disconnecting in nodejs express
We would like to notify the frontend when new events arrive in the system, if they are part of the group that the event belongs to. We decided to use SSE to accomplish this over WebSockets since we ...
0
votes
0
answers
68
views
How to make the Event Stream (EventSource()) working with cloudflare?
basically i am using an ai tool api, so i create a POST request first to create a database entry then to get a streaming output I do it using EventSource()
this works perfectly in deployment even (...
0
votes
0
answers
44
views
Connection closes when connected to SSE after sending one data
Our server is implemented in python, where there is an endpoint called /description/progress this endpoint is an SSE endpoint. When fetching this endpoint on the frontend with in React, Typescript; ...
0
votes
0
answers
36
views
How do I monitor metrics specific to Server Sent Events (SSE) in Spring?
We are using a SpringBoot service that uses SseEmitter to implement Server Sent Events back to the client.
From the standpoint of observability, I am wondering if there are any metrics that are ...
0
votes
0
answers
60
views
Server-side events (SSE) when using flask via google webapp
I have hnuted an answer on this and closest I have come to my issue is this old and unanswered post here: python flask + Server Sent Events(SSE) in Google App Engine(GAE)
I have a web app built in ...
0
votes
0
answers
23
views
Why session field is not being deleted in django Server sent event?
class task_check(AuthententicatedOrReadOnlyAPIView):
content_negotiation_class = IgnoreClientContentNegotiation
def get(self, request):
timeout = int(request.query_params.get('timeout', 300))
...
0
votes
0
answers
16
views
Post docker.container.logs asynchronous as SSE using fast-api and docker
I am trying to create an API that can fetch logs from a docker container and returns them as an event-stream.
I use python as language together with the fastapi and docker package.
Whenever I try to ...
1
vote
2
answers
74
views
Trigger Server Sent Event every 2 seconds in golang
My server code in golang
package main
import (
"fmt"
"log"
"net/http"
"github.com/rs/cors"
)
func main() {
mux := http.NewServeMux();
...
2
votes
1
answer
189
views
ReadableStream with Axios not working in Safari, but working in Chrome and Firefox
I'm building a chat app with AI API like ChatGPT. I'm streaming back the responses, which works fine in chrome and firefox, but does not in Safari. There I always get this error:
[Log] Error: (...
0
votes
0
answers
63
views
How to use Mongo change stream with Next Js (Server-Sent Events (SSE))?
I am working on a Next.js chat application that uses MongoDB to store chat messages. After sending a message, it gets inserted into the collection, but I'm facing issues with reading the messages in ...
0
votes
0
answers
35
views
Closing SSE connection causes error in Firefox
I'm building a POC react app, and using sse.js to stream text from my SSE-enabled sever and render it on the page. When all text has been sent, the server sends a special flag called isComplete as ...
0
votes
0
answers
43
views
EventSourcePolyfill doesn't receive all data as postman (angular)
i have this problem with EventSourcePolyfill , when i create new notification it doesn't receive any thing but after some number of notifications it receive the previous notifications but also it get ...
0
votes
1
answer
30
views
Puppeteer Scraper Not Accessing Connected Clients in Node.js Server
I am developing a web application using Node.js, Express, Puppeteer, and MongoDB. My goal is to create a scraper that sends real-time updates to connected clients via Server-Sent Events (SSE). However,...
0
votes
0
answers
41
views
How to disable buffer_output when using Symfony's build in server?
My eventual goal is to create an SSE stream, but for now I just created a simple php file in the public folder of my Symfony project. The code in it has nothing to do with Symfony:
<?php
header('...
0
votes
0
answers
46
views
SSE not working with Rust Yew, different errors occuring
I recently tried to connect my Yew frontend app to an actix-web SSE server I use to send events to the page. I tried different approaches and crates like EventSource from "web_sys", "...
0
votes
1
answer
630
views
How does streaming work in OpenAI's APIs?
I have a basic understanding of how event streams work. I am currently converting langchain code to directly use OpenAI's API and I have a piece of code I am a bit confused about.
def stream_message(
...
0
votes
0
answers
37
views
I'm running a flask app with SSE.. If I open more than a couple of client pages the server seems to hang
I'm running a flask server app, on windows 10, code and template below. Basically it has a thread which increments a counter every second, and the backend html gets the updated counter value via SSE....
0
votes
3
answers
87
views
java.util.ConcurrentModificationException for removing without loops
I am using a MutableMap collection with set as value where I need to add new objects and delete some old ones quite often. I don't use loops but for some reason I still get an java.util....
0
votes
0
answers
78
views
NestJS Server-Sent Events (SSE) connection doesn't close automatically and subsequent requests fail silently
I'm building a feature where the frontend sends a POST request to /mailer/inform with an array of email addresses. This triggers sending individual emails to those addresses. I'm using Server-Sent ...
1
vote
0
answers
153
views
FastAPI SSE split responses between two clients
I have a question, but I'm not actually sure it is a real problem, so I hope you can help me.
I'm trying to create notification system using server sent events and FastAPI.
A wrote a simple test ...
0
votes
0
answers
12
views
I am trying to implement notification system using SSE in tomcat server, how to hold the connection in the server with the user identity [duplicate]
I am new to Java Servlet concepts and Web Development with Java.
I am trying to implement a notification System using ServerSentEvents.
I know that whenever an announcement was made, It will be stored ...
1
vote
0
answers
62
views
Testing a SSE endpoint in Go
I'm trying to write a test in Go to verify the behavior of a Server-Sent Events (SSE) endpoint implemented using the Fiber framework. My goal is to ensure that the client can successfully disconnect ...
0
votes
0
answers
25
views
Server sent events - request limits handling
I have to use an external API. On request, it streams the events or data every second.
According to their API document, they accept only 2 requests in a minute. But we would have 100s of users in a ...
0
votes
0
answers
62
views
Symfony 6 / Mercure : How do I know if a user is authorized to subscribe to a specific topic?
I'm currently developing a real-time notification system on my Symfony 6 application with Mercure 🔔
It works perfectly, for example my user Paul will receive notifications if a message is sent in a ...
0
votes
0
answers
26
views
implementing SSE (Server Sent Events) in java Servlet for sending notification by calling wait inside the HttpServlet [duplicate]
I am trying to implement real-time notification system using Servlet and ServerSentEvents
This is the following code I have implemented
@WebServlet("/notification")
public class ...
0
votes
0
answers
113
views
Server Side Events (SSE) not working under IIS (Node.js Angular)
I'm experiencing a delay in receiving SSE events when using IIS with Integrated Pool mode. The delay seems to be specific to SSE events, as other types of content are not affected. I've tried ...
0
votes
1
answer
130
views
Implementation of SSE(Server Sent Events) using HttpServletRequest.newPushBuilder() Always Returning null
I am new to SSE - server sent events implementation.
I am trying to implement SSE using java jakarta.HttpServletRequest.
import java.io.IOException;
import jakarta.servlet.annotation.WebServlet;
...
1
vote
1
answer
68
views
Consume Server-Sent Events in a Next.js route handler
I have a Supabase Edge Function (written in Deno) that stream a message every second.
/// <reference types="https://esm.sh/@supabase/functions-js/src/edge-runtime.d.ts" />
const msg = ...
0
votes
1
answer
195
views
Send real-time progress updates from Flask server to NextJS frontend (App router)
Please scroll below to see the latest update/edit. Thanks!
Here is my backend code in python:
@app.route("/api/generate/all", methods=["POST"])
async def render_code_all():
...
1
vote
1
answer
93
views
Nuxt "/_loading/sse" results in "ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)"
Issue
In order to overcome CORS and TLS/SSL issues during Nuxt 2.14 project development, a Docker Nginx and Node containers are in use, where Nginx is also used as a reverse-proxy.
DevTools Console is ...
0
votes
0
answers
32
views
Data in browser received from Server Sent Event are buffered in 8192 bytes packets
I'm developing a web application in which I'm using Server Sent Event to update a web page. When testing on localhost everything is running fine. However when used online (OVH cloud provider) the ...
1
vote
0
answers
44
views
App Freezes When Using SSE Data Streaming with Multiple (6) EventSources
Context:
I'm developing a dashboard using ExpressJS and HTML that utilizes Server-Sent Events (SSE) for data streaming. Each time a page is opened, a new EventSource object is created. However, I've ...
0
votes
0
answers
45
views
Dart SSE Server Source Event Error Flutter
have a problem with SSE dart.
Use Library, fetch_api or sse_client for get event of server.
if use web chrome with devtools, i see, that Eventstream handle it.
But dont recenter image description ...
-1
votes
1
answer
81
views
SSE in Java SpringBoot giving uneven chunks
I have an SSE endpoint in flask which emit SSE data chunks which are according MDN standards which ends in two \n characters, and when I received them on my frontend they received on the same format.
...
0
votes
1
answer
41
views
SSE Update issues for the first client
im developing a test application (for now) thats using Nextjs/redis.
I have the sse endpoint working (sort-of) correct. When a client connects it retrieves a Snapshot and sends it back, when an update ...
0
votes
2
answers
83
views
SSE Response sent three to four times at once
I am trying to set up SSE between a NodeJS Server and a TypeScript Frontend. My Server-code looks as following:
let sseInterval: { [index: string]: NodeJS.Timer } = {};
this.app.get('/events/:id', (...