<div dir="ltr">It is okay, I now clearly understand this usage.<div><br></div><div>Thank you for helping me to understand the WebSocket Client API clearly.<div><br></div><div>Best regards.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-18 16:16 GMT+03:00 Pavel Rappo <span dir="ltr"><<a href="mailto:pavel.rappo@oracle.com" target="_blank">pavel.rappo@oracle.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 18 Aug 2016, at 13:54, Rahman USTA <<a href="mailto:rahman.usta.88@gmail.com">rahman.usta.88@gmail.com</a>> wrote:<br>
><br>
> 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 ?<br>
<br>
</span>If you are not concerned about possible resources exhaustion and related<br>
problems (which back-pressure was designed to address), the simplest would be to<br>
make a single request for virtually infinite amount of messages once you obtain<br>
a reference to a WebSocket instance:<br>
<br>
  webSocket.request(Long.MAX_<wbr>VALUE)<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr" style="font-size:12.8000001907349px">Rahman USTA</div><div dir="ltr" style="font-size:12.8000001907349px">Istanbul JUG<br><div><a href="http://www.kodcu.com/" target="_blank">https://github.com/rahmanusta</a></div></div></div></div></div></div></div>
</div>