title: android simple JSON payload to websocket
body: <p>I am trying to send a simple JSON payload via a websocket in android.
  I did it in python like this:</p>
  
  <pre><code>self.connection = websocket.create_connection(url, config["timeout"])
  self.connection.send(payload)
  </code></pre>
  
  <p>and that's it.</p>
  
  <p>but in JAVA it's all way too complicated and I saw in some places that I need to use okhttp3 sockets, other places I saw that I need to convert it into bytes.. and I'm not sure on how to aproach it with JAVA for android.</p>