code: private void doConnect(){
          task = new SocketDeamonTask();
          connectThread = new Thread(task);
          connectThread.setDaemon(true);
          connectThread.start();
      }
docs: Do the WebSocket connect.