This tag is for questions relating to event streams in HTTP. Event streams are an easy way for a server to have a continuous connection with the client and send data back and forth.
Questions tagged [event-stream]
137 questions
2
votes
1 answer
Firebase realtime database REST event stream: do not download the whole tree
I am using the Firebase Realtime database REST API to stream events from the server when data gets uploaded (See https://firebase.google.com/docs/reference/rest/database#section-streaming-cancel)
However, when I start the event stream, it always…

Felix
- 6,885
- 1
- 29
- 54
2
votes
1 answer
PHP retrieve text/event-stream data
For my DIY project I want to retrieve data from an 3rd party API which returns with the 'text/event-stream' header.
Because the connection doesn't close, I do it with a timeout as shown here:
$url='https://example.com/api/';
$ctx =…

Luxx
- 392
- 3
- 6
2
votes
1 answer
Vue: How do I render a set of components based on an event stream?
{{ stream.name }}

darkphoenix
- 2,147
- 3
- 13
- 14
2
votes
1 answer
How do I read csv file line by line, modify each line, write result to another file
I recently used event-stream library for nodejs to parse a huge csv file, saving results to database.
How do I solve the task of not just reading a file, but modifying each line, writing result to new file?
Is it some combination of through and map…

Dominik Domanski
- 1,023
- 2
- 10
- 18
2
votes
1 answer
What is event stream in rest api and why do we need it?
I'm trying to develop rest api for the first time. And looking to loopback references that uses change stream for the resources like /resources/change-stream with the GET and POST methods.
I have visited this post which indicates differences between…

Bhojendra Rauniyar
- 83,432
- 35
- 168
- 231
2
votes
3 answers
"Sessioning" an event stream
I have a problem that should be solved outside of SQL, but due to business constraints needs to be solved within SQL.
So, please don't tell me to do this at data ingestion, outside of SQL, I want to, but it's not an option...
I have a stream of…

MatBailie
- 83,401
- 18
- 103
- 137
2
votes
2 answers
How to Read SSE event stream at server side instead of browser
I am creating an application to read Event Stream and keeps the information on my database.
I have an URL: http://xx.xx.xx.xx:8080/restconf/streams/mno-vnf-event/json
headers required: Accept:text/event-stream, Authorization:Basic YWRtaW46o99RtaW4-,…

Abhishek Mishra
- 31
- 5
2
votes
2 answers
How to tell protractor to ignore specific asynchronous Angular tasks?
My angularJS application using event-steaming and it keeps open the http event-steam request and listening server events. So my problem is when protractor start testing of my angularJS application, it keeps wait to complete event-stream request as i…

Murali.Molluru
- 139
- 9
2
votes
0 answers
Nodejs - "Write After End" error while Exporting from Mongoose
I am trying to write the results of 3 Mongoose find query into a single file test.txt using event-stream nodejs.
My program is something like this…
var es = require('event-stream');
var fs = require('fs');
var wstream =…

mvs
- 33
- 1
- 8
2
votes
1 answer
node heap exhausted when piping JSONStream.parsed() data through es.map() and JSONStream.stringify() to file stream
I'm trying to pipe an input stream (created from a huge GeoJSON file) through JSONStream.parse() to break the stream into objects, then through event-stream.map() to allow me to transform the object, then through JSONStream.stringify() to create a…

nw31304
- 151
- 6
2
votes
1 answer
Fetch text/event-stream web response using WWW::Mechanize or LWP::UserAgent
I'm using WWW::Mechanize to fetch a web page that includes a Google Maps widget that receives constant data from a single response of type text/event-stream.
That kind of response is like a never ending response from the server that constantly…

Francisco Zarabozo
- 3,676
- 2
- 28
- 54
2
votes
1 answer
Using RxJS event streams for simple sequence management
I'm trying to learn how to think in event streams, and I'm trying to wrap my head around it by testing it out on some contrived scenarios. The following scenario I'm stuck on:
Let's say I have two buttons, we'll call them A and B. A can be clicked…

Anson Kao
- 5,256
- 4
- 28
- 37
2
votes
4 answers
Ruby Complex Event Processing
Is there an open-source complex event processing (CEP) engine for ruby?
I'm looking specifically for something that offers stateful analysis, not just rules-engine-style antecedent-predicate productions.

Aubrey Jones
- 123
- 6
2
votes
2 answers
Server sent events - text/event-stream ocasionally misenterpreted as text/html by chrome and firefox
I have built an application that, at some point, uses Server Sent Events, send from a long running php script, to update a progress bar on the frontend. After I have faced the typical problems with flushing the output of the php script and tried all…

SilentBob
- 21
- 1
- 3
2
votes
1 answer
How to actively delete a Dart object?
I'm building a Dart app which contains a variety of class objects. The particular class object I'm dealing with contains a variety of stream event listeners on DOM elements. When I remove these objects from the DOM and untrack the class object…

user3317470
- 39
- 4