@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());
 }
 @Override
 public void connect(String url) throws IOException {
   socket = new IOSocket(url, new CallbackHandler(this));
   socket.connect();
 }