Questions tagged [event-stream]

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.

137 questions
0
votes
1 answer

Attribute error even though code works. Does it matter?

I'm calling a function attribute to update a variable in a while loop within my Flask app, to then send data in a Response to my template JS to update css attributes - this is to update a progress bar in PyTube. I receive 'AttributeError: 'function'…
0
votes
1 answer

AWS Elasticsearch as eventstore

I am planning to use AWS Elasticsearch as an eventstore DB. Mostly the events would be something like an instance ID and an event of login/logout etc. In this scenario the instance ID pretty much remains the same but events would keep on updating…
Rahul Goud
  • 147
  • 2
  • 12
0
votes
1 answer

Event streams with nginx over tls

I made a php event streaming script that worked perfectly fine when nginx had not tls (ssl) enabled but after enabling tls the request to the event stream stay pending. I tried disabling ssl cache, proxy cache ([here][1] is my website configuration…
i thirzty
  • 51
  • 1
  • 1
  • 4
0
votes
0 answers

PHP closing connections when too many

recently, I decided to load test my website on some page that require server sent events (event streams) which means that PHP needs to handle many opened connections (with scripts on loop). When approaching the ~140 opened connection, the…
0
votes
0 answers

Nodejs: Unable to convert RAW data after reading file

I have a file having below mentioned data: 8745kjhsdf CRM Natl Abc Day MC CRM Natl Jrky Day245874k001S00002000001759300.000.000.0000.0 EA 000001 001 O 50 0 2 20200323 910079105MC CRM Sandwich MC CRM Free…
0
votes
1 answer

Download a file from S3 and split by number of lines

I'm trying to download a file from an S3 bucket and split it into chunks of 500000 lines each one saved as a separate file. The code i wrote below keeps crashing with this error: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap…
Salvatore
  • 69
  • 3
0
votes
0 answers

Python server sent event inconsistent messages received by the client

I'm currently having issues regarding delayed response using text/event-stream in python3. The issue I'm encountering was message inconsistencies. Messages sent from the server aren't always get received by the client. I'm using POSTMAN to send a…
0
votes
2 answers

EventStreams (SSE) - Broadcasting updates to clients. Is it possible?

I have React web application and REST API (Express.js). I found that usage of EventStream is better choice if you do not want to use long-polling or sockets (no need to send data client->server). Usecase: User opens page where is empty table where…
Baterka
  • 3,075
  • 5
  • 31
  • 60
0
votes
1 answer

When trying to execute an Siddhi APP using an event-stream generated by JMeter the RAM usage gets out of control

When trying to simulate an event-stream with JMeter and use it as source on siddhi it works for a little time but ends with RAM being overused and the execution of the program stops. I tried executing the code with a database,without a database,…
0
votes
3 answers

Async/await with event-stream mapSync not working

The await commands that I have commented with //******This await does not work */ do not seem to work. Not sure if this is something related to the fact they are in an event stream or a problem with the promise in the imported module. When I call…
PrestonDocks
  • 4,851
  • 9
  • 47
  • 82
0
votes
1 answer

babel-preset-env fails to install

While installing babel-preset-env, npm install --save-dev babel-preset-env It says 404 Not Found: event-stream@3.3.6 It appears that event-stream was pulled from npm because of a security issue, but it appears that babel-preset-env still relies…
nishant
  • 736
  • 1
  • 12
  • 22
0
votes
1 answer

How to config HTTPPlatformHandler of IIS for Server Sent Event (SSE, EventStream)

Currently I have program that provide SSE as a service, and I have to deploy on IIS. But its does not work correctly, Here is the result when I run .exe without IIS. data: Hello, world But when its run behind IIS, Browser was stuck on loading. I…
Mossila
  • 169
  • 2
  • 9
0
votes
1 answer

How do you use event-stream to pause and resume Gulp streams?

I'm trying clone npm packages to a client-side location, so I have created multiple streams to accomplish this and merge them to return from gulp.task(). However, it is my understanding that I will need to pause the streams in order for the task to…
roydukkey
  • 3,149
  • 2
  • 27
  • 43
0
votes
1 answer

nodejs server side events just don't want to work

I have been trying to figure this out for hours... I used various tutorials that explained it, copied the code into my code, but it just doesn't work. No error message, nothing. Here is what i'm doing: client: