server-sent-events Questions

4

I am working on a react native chat app, and I would like to use openai api to implement auto replying. There is stream available from openai's api, but it uses SSE, which seems not working well in...
Sunbow asked 28/12, 2023 at 8:9

4

Solved

I am trying to add SSE(Server sent events) in NodeJs, But when I am sending response using res.write() the data is not getting sent, but only after writing res.end() all data is being sent at the s...
Samiel asked 24/4, 2020 at 16:1

4

I'm developing chat rooms based on Twitter hashtag with Server sent events, with the package https://github.com/antage/eventsource I have a problem concerning the disconnection of the client. I ru...
Thessa asked 20/8, 2015 at 16:27

5

Solved

I'm looking for examples using a plain JDK11+ http client reading server sent events, without extra dependencies. I can't find anything about sse in the documentation either. Any hints?
Zoochore asked 20/8, 2020 at 8:4

8

Solved

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 ov...
Sewellel asked 4/3, 2011 at 15:7

5

Solved

I have a Java 8 / Spring4-based web application that is reporting the progress of a long-running process using Server Sent Events (SSEs) to a browser-based client running some Javascript and updati...
Chemist asked 15/6, 2018 at 7:10

2

SSE is based on HTTP protocol, and ws requires one time HTTP upgrade. For a small user base, I understand, WebSocket is way too good over SSE. I am worried about how much difference will it be for ...
Nittygritty asked 25/8, 2020 at 17:16

1

Solved

I have checked the Event Listeners Tab, but it doesn't seem to show server sent event listeners. const sse = new EventSource('/api/v1/sse'); sse.addEventListener("notice", function(e) { ...
Circumpolar asked 11/4, 2022 at 8:3

2

Solved

I was curious about how chatgpt push message to the client side recently. I have already read some articles that introduce ChatGPT using sse to push message to client side,does chatgpt push answser...
Anchie asked 25/3, 2023 at 13:8

2

In our App we request a stream of information with Server-Sent Events. For this we use the small Library IKEventSource Which under the hood uses Foundation.URLSession. This Information is sent in ...
Nkvd asked 9/6, 2017 at 13:27

2

I have a FastAPI application that uses Server Sent Events (SSE) for streaming the response of a generative AI model, similar to the API of OpenAI. The application is deployed using the following ar...

2

I'm a beginner in PHP and making a website that displays basic system information(CPU usage, memory usage etc)of a linux system on a webpage.For the web server, i used the built-in web server: php...
Vipul asked 10/7, 2016 at 6:9

4

Solved

I'm using Html5 Server Sent Events. The server side is Java Servlet. I have a json array data wants to pass to server. var source = new EventSource("../GetPointVal?id=100&jsondata=" + JSON.str...
Normi asked 14/12, 2015 at 7:43

2

TL;DR update: Whether closing an EventSource from the client or closing the client entirely, php continues to execute on the backend and fails to report the correct value for connection_aborted(). ...
Exteriorize asked 17/4, 2020 at 14:29

5

Solved

Documentation for Django 3.1 says this about async views: The main benefits are the ability to service hundreds of connections without using Python threads. This allows you to use slow streaming, ...
Scimitar asked 8/8, 2020 at 15:2

2

Solved

How can I change the source set in declaration of EventSource? I have tried something like this: var source = new EventSource("/blahblah.php?path=" + (window.location.pathname)); // Few lines lat...
Alginate asked 24/2, 2017 at 18:50

2

Solved

I can't find a tutorial for SvelteKit without using custom express server. Are there any alternatives with an API endpoint? I've tried setting up the API endpoint myself, but I can't make it send a...
Imco asked 21/12, 2022 at 17:42

1

I have a Next.js api like this (/api/events/index.js): import EventSource from 'eventsource'; import { getAccessToken, withApiAuthRequired } from '@auth0/nextjs-auth0'; export default withApiAuthR...
Bacteriology asked 11/11, 2022 at 22:53

5

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. H...
Drummer asked 23/5, 2014 at 9:36

1

Solved

I am using Python 3.10 and FastAPI 0.92.0 to write a Server-Sent Events (SSE) stream api. This is how the Python code looks like: from fastapi import APIRouter, FastAPI, Header from src.chat.compl...
Quadruplicate asked 23/3, 2023 at 16:5

1

I am facing the same issue explained over here: Server-sent events SSE in PhP 7.4 - Apache hanging and not registering/serving any new requests That max_children of the Apache server are reached, d...
Shove asked 13/3, 2023 at 12:39

2

Solved

Problem I am trying to stream data to my React Frontend via EventSources, which kind of works. The problem is that I receive all chunks of data at once instead of time after time. Which kind of def...
Hardbitten asked 27/1, 2023 at 10:34

1

Solved

I am new to nestJs, Now I need to implement the sse in nestJs, In nestJs they have the special decorator called @Sse to establising the sse connection between the clients and server. If I use this ...
Excursive asked 1/3, 2023 at 17:56

2

I have tried to use the native EventSource in Google Chrome. If the server responds with an error, details about this response will be shown in the response header in Chrome inspect: error details ...
Rostellum asked 20/1, 2020 at 12:29

3

Solved

All examples that I have seen that implement server sent events (https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) set content type of the response to te...
Shiest asked 4/11, 2015 at 18:46

© 2022 - 2025 — McMap. All rights reserved.