@Override
 public void disconnect() {
   try {
     socket.getWebSocket().close();
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
 private void send(String content) throws IOException, JSONException {
   IOMessage msg = new IOMessage(IOMessage.MESSAGE, -1, "", content);
   socket.getWebSocket().send(msg.toString());
 }