Is it possible to use Java WebSocket with desktop application?
<p>I would like to achieve responsive aplication.</p>

<p>Currently I have java REST service but everytime I want to have fresh data I need to request REST service.</p>

<p>I could have WebSocket Service like that: <a href="https://i.stack.imgur.com/JrbEC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JrbEC.png" alt="enter image description here"></a></p>

<p>I would like to know if it is possible to connect client desktop JavaFX application to WebSocket Service.</p>

<p>Thanks to that I could achieve fullduplex bidirectional communication. </p>