code: @Override
      public void onSuccess(WebSocket webSocket) {
          logger.trace("onSuccess {}", webSocket);
  
          this.webSocket = webSocket;
  
          if (connectOperationFuture != null && !protocolEnabled) {
              unlockFuture();
          }
  
          WebSocketListener l = new TextListener();
          if (supportBinary) {
              l = new BinaryListener(l);
          }
          webSocket.addWebSocketListener(l);
          l.onOpen(webSocket);
      }
docs: {@inheritDoc}