I followed this tutorial and implemented a simple chat application. I'm testing it both in latest Mozilla Firefox and Google Chrome browsers.
My main concern is that the messaging exchange does not seem to happen in real time. Even though the all the server processing happens in less than a second from the request, the browser gets the response just after the AsyncContext
timeout is exceeded.
Even is the default 10 seconds or a custom value added through AsyncContext.setTimeout()
the time of response is the same with the timeout. Should this be the expected behaviour? Is there a way to force the server to send the response as soon as it is ready and not wait the hole timeout interval?