event-stream Questions
2
I have an EventSource listener on my frontend calling a complicated backend scheme. This code block is written in Typescript.
import * as EventSource from 'eventsource';
private streamData() {
...
Fornix asked 16/3, 2019 at 20:50
2
I want to ask this question with a simply example. (I will write down at the end of the post).
I have read this:
server sent events not updating until script is finished
But I don't know how to sol...
Thrilling asked 3/10, 2021 at 18:57
1
Solved
I'm writing a script in Google Sheets to retrieve a value from an API. The API provides text/event-stream responses ~every 10 seconds. Is there a way I can retrieve a single response without using ...
Paulitapaulk asked 21/10, 2021 at 1:0
3
Solved
All the docs I can find seem to suggest I need two http requests to do this: one to the stream, giving me a link to the last event, and then one to follow that link.
That seems bizarre, isn't ther...
Bargello asked 13/11, 2017 at 22:10
2
Solved
I have socket.io sending a basic object from server to client. This bit works fine.
Now want to send a stream from server to client, using event-stream (specifically the results of a block-chain q...
Superhighway asked 5/2, 2018 at 16:35
2
Solved
I have a set up with a GET and a POST route, the idea being that POSTing to the route triggers an event, and the GET route is a server-sent eventstream which fires each time the POSTed event is tri...
Selfcontrol asked 27/5, 2014 at 15:56
1
Solved
I have implemented a server sent events with eventsource on my web application.
Basically in javascript my code look like :
var myEventSource;
if (typeof(EventSource) !== "undefined" &&...
Freudian asked 26/4, 2018 at 20:50
1
Solved
I'm using SSE with the EventStream built in logic for javascript. While having onopen return a successful result the onmessage callback is not working.
Odd thing here is that within Chrome in the E...
Tramline asked 27/10, 2017 at 9:13
4
Solved
I am trying to merge css and scss files into a main.css file that goes in my build directory.
Its working, but not in the right order. The style attributes from the scss files need to be in the bot...
Mitrailleuse asked 28/9, 2014 at 19:25
3
I have a php script that import large data from csv files with validations.
For that I need to show progress to the user. I have used Event Streaming for that.
When I echo something, I want it ...
Commuter asked 19/2, 2015 at 13:31
1
Solved
I'm trying to generate a large PDF using a Flask application. The pdf generation involves generating ten long pdfs, and then merging them together. The application runs using Gunicorn with the flag...
Erythrocytometer asked 20/3, 2015 at 16:18
1
Solved
I'm trying to get information about an error when using EventSource in NodeJs, I think you could understand me better with the following example:
var url = 'http://api.example.com/resource'
var Ev...
Uchida asked 26/9, 2014 at 22:46
1
Solved
I am trying to create a Flask server that streams data to the client using sse. The piece of test-code below seems to do the trick, but I stumbled upon a problem related to handling client disconne...
Garey asked 10/5, 2014 at 11:21
1
I'm trying to implement text/event-stream using Rails 4's Live streaming. It works great and the only trouble I met is that I can't check if the connection is alive without sending any messages.
T...
Lurid asked 10/1, 2013 at 22:47
2
Solved
I would like to push data to users every 2 min. Using EventSource requires additional pushing null-byte every 29 sec to keep the connection open. WebSocket doesn't require such ping. Why is the Eve...
Graticule asked 6/1, 2012 at 16:27
1
© 2022 - 2024 — McMap. All rights reserved.