0
Extension application reloads after downloading file programatticaly
Hi Ankit,
Sometimes browsers (or embedded browsers in a desktop app) have different behaviours that we cannot really fix. The best is to try an alternative or workaround. Did you try to not add the anchor element to the body itself but to an intermediary hidden iFrame element?
Olivier.
2 years ago
0
Server-sent events
Hi Graham, publishing an event to suscribers in a class extending SsePublisher is pretty straightforward, you have to do the following:
SimpleEvent event = new SimpleEvent();
event.setId("myId");
event.setType("event1");
event.setPayload("This event occurred at " + LocalTime.now().toString());
this.publishEvent(event);
To suscribe to this event, the client app must implement the EventSource class such as:
const evtSource = new EventSource("http://lo...
3 years ago