Skip to main content

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.

server-sent-events
0 votes
0 answers
13 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 ...
absthebarbarian's user avatar
0 votes
0 answers
31 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 (...
Pragyan's user avatar
  • 407
0 votes
0 answers
31 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; ...
MRSinal's user avatar
  • 25
0 votes
0 answers
15 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 ...
IcedDante's user avatar
  • 6,484
0 votes
0 answers
42 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 ...
NRD's user avatar
  • 141
0 votes
0 answers
21 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)) ...
Talk is Cheap Show me Code's user avatar
0 votes
0 answers
8 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 ...
AdrianG's user avatar
  • 18
1 vote
1 answer
54 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(); ...
yahya kamran's user avatar
1 vote
1 answer
35 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: (...
mikeboe's user avatar
  • 36
0 votes
0 answers
25 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 ...
Meet Patel's user avatar
0 votes
0 answers
29 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 ...
oliakaoil's user avatar
  • 1,659
0 votes
0 answers
35 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 ...
Hager Khaled's user avatar
0 votes
1 answer
27 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,...
Botond Till's user avatar
0 votes
0 answers
29 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('...
Jack33's user avatar
  • 121
0 votes
0 answers
35 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", "...
h-c's user avatar
  • 32

15 30 50 per page
1
2 3 4 5
126