code: public void onConnect() {
          input.setDisabled(false);
          sendingButton.setDisabled(false);
          connectingButton.setDisabled(true);
          disconnectingButton.setDisabled(false);
      }
docs: Enables sending widgets. Disables connecting widgets.