eventsource Questions

1

How can I catch the http status code of a failed EventSource connection? function onError(event) { console.log('request status code?'); } const source = new EventSource('url', { withCredentials:...
Lyonnesse asked 3/3, 2018 at 12:21

1

In flask I have a page that is used with EventSource to receive updates/events. It's implemented in fairly trivial manner: @route('/updates') def updates(): def gen(): while True: update = mak...
Moorland asked 22/12, 2015 at 14:22

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

3

Solved

I'm trying to set up a Spring SseEmitter to send a sequence of updates of the status of a running job. It seems to be working but: Whenever I call emitter.complete() in in my Java server code, the...
Shelah asked 21/3, 2019 at 18:55

2

I'm currently evaluating options for designing/implementing Event Sourcing + CQRS architectural approach to system design. Since we want to use Apache Kafka for other aspects (normal pub-sub messag...

2

I'm trying to use an EventSource with Typescript but cannot type correctly the response when using named events. I tried const evtSource = new EventSource('/my-url'); const parseMyEvent = (evt: Ev...
Seeseebeck asked 3/3, 2021 at 22:37

5

Solved

I am currently writing the communication framework for a web game, the communications map can be seen below: The code is as follows: test.php: <!DOCTYPE html> <html> <head> &l...
Homozygote asked 30/7, 2016 at 17:6

2

The same code used to work before but i dont know why it is not working now.Please help. My problem is that when i use SSE for real time data sharing.The data object which should be sent on res.wr...
Astrict asked 8/5, 2020 at 9:42

3

Solved

I'm using Node server with an express app which handles a Server Sent Events stream. This is proxied via NginX with http2 enabled. The SSE events are consumed via EventSource in a React app. I'm se...
Phenolphthalein asked 1/4, 2020 at 15:12

4

Solved

I'm looking into implementing a "subscription" type using server-sent events as the backing api. What I'm struggling with is the interface, to be more precise, the http layer of such operation. T...
Claver asked 16/3, 2019 at 17:9

2

I am working with Angular5 application , where i need to show Real-time data on dashboard.our backend is written in spring(v4.x) which having api which sends results when any server event is genera...
Gripping asked 22/10, 2018 at 9:59

1

Solved

I've a ReactJS client which uses EventStream and a golang backend which implements SSE. Everything seemed to work when I connected my browser to the backend running on localhost, as well as when m...
Underbody asked 25/10, 2019 at 14:0

1

Solved

I am using server sent events in MEAN stack. I am able to push data from server to client whenever required. But one thing i noticed that even if i am the only client hitting the server. There ar...

2

Solved

I have a very simple node service exposing an endpoint aimed to use Server Send Events (SSE) connection and a very basic ReactJs client consuming it via EventSource.onmessage. Firstly, when I set ...

2

Solved

In our application we have SSE connection with living time 5 minutes, after 5 minutes server closes the connection and client reconnect automatically. But here the problem: while client reconnecti...
Zemstvo asked 11/10, 2019 at 6:3

2

Solved

I would like to create a RxJs Observable from an EventSource (server sent events). I tried the following: import {Component, OnInit} from 'angular2/core'; import {Subject, Observable} from 'rxjs/...
Fordham asked 24/4, 2016 at 18:36

3

First of all, I`m quite new to ng2 and typescript. What Im trying to accomplish is to implement Server-Sent events in Angular2 component. I have followed the examples mentioned in earlies posts he...
Tracheostomy asked 3/5, 2016 at 11:55

1

I have a controller which includes the Rails ActionController::Live module. I am displaying the contents of a logfile, which is being read using FileTail gem, and using SSE from ActionController::L...
Splanchnic asked 7/10, 2016 at 19:40

2

I'm developing a stocks app and have to keep users browser updated with pricing changes I don't need to access past data, browser just have to get current data whenever it changes is it possible ...

1

Solved

Currently looking at SSE using Angular 5 and Spring 5 webflux. The basic application is working correctly, but whilst investigating error handling we've noticed that the EventSource in the angular ...
Bogart asked 24/4, 2018 at 10:30

1

To get start with EventSource API I wrote the most scholastic example. The problem is that I'm always getting error and I can't find any useful information about it. When I load home.html, the JS s...
Cellobiose asked 23/3, 2018 at 10:43

1

Solved

I have a question on how to make SSE worked in multiple server environments. In UI, there are two steps: 1. source = new EventSource('http://localhost:3000/stream'); source.addEventListener('ope...
General asked 22/4, 2017 at 0:46

0

does Strongloop Loopback support filtering in change-streams? The following works for all model changes, but I am only interested in changes of parts of the model. Can I add filtering to the Even...
Cacoepy asked 22/4, 2017 at 16:42

1

Solved

In our application we expose a callback route for an external service to hit. When we receive the callback, we publish an update to client-side subscribers using Eventsource on the client/browser-s...
Urceolate asked 27/8, 2015 at 18:35

© 2022 - 2024 — McMap. All rights reserved.