constructor()

in src/components/Widget/index.js [48:61]


  constructor(props) {
    super(props);
    this.messages = [];
    this.delayedMessage = null;
    this.messageDelayTimeout = null;
    this.onGoingMessageDelay = false;
    this.lastIsFinal = true; // Track last is_final value from bot_uttered
    this.sendMessage = this.sendMessage.bind(this);
    this.getSessionId = this.getSessionId.bind(this);
    this.getSessionIdWithFallback = this.getSessionIdWithFallback.bind(this);
    this.intervalId = null;
    this.eventListenerCleaner = () => { };
    this.socketHandlersRegistered = false; // Track if socket handlers are already registered
  }