perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.64k stars 1.56k forks source link

Sending progressive messages #1045

Closed WebSabaki closed 5 years ago

WebSabaki commented 6 years ago

Good afternoon.

Is there any way to flush messages so that we can handle progressive messages with xmlhttprequest onreadystatechange?

By "progressive messages" I would refer to a potentially slow endpoint running

The idea would be to display a "frontend controlled explanation on each step" / "progression bar" when these actions last to avoid user confusion.

thanks