title: javax.websocket client simple example
body: <p>Can someone please provide me very simple example of websocket client using <code>javax.websocket</code>?</p>
  
  <p>I want to connect to websocket (ws://socket.example.com:1234), send message (add channel) and listen to messages. All messages (sent &amp; listened) are in JSON format.</p>
  
  <p>And btw is this library the best for simple websocket communication?</p>