HTTP/2 Client WebSocket support
Pavel Rappo
pavel.rappo at oracle.com
Thu Aug 18 13:16:28 UTC 2016
> On 18 Aug 2016, at 13:54, Rahman USTA <rahman.usta.88 at gmail.com> wrote:
>
> A WebSocket server can send any message at any time to any client, so how a client will be able to get any message at any time with this API ? For example, if our server pushes new stock exchange data to our client, how can I get this multiple data from server when they come ?
If you are not concerned about possible resources exhaustion and related
problems (which back-pressure was designed to address), the simplest would be to
make a single request for virtually infinite amount of messages once you obtain
a reference to a WebSocket instance:
webSocket.request(Long.MAX_VALUE)
More information about the net-dev
mailing list