Hi Leanne,
Thanks for explaining, but I believe this is still a significant UX issue for production use:
- We understand that websocket connections can drop occasionally due to network conditions, browser behavior, or sleep mode.
- The concern is not the drop itself, but that the end-user now sees a hard âDisconnectedâ error, even if the connection could be restored automatically.
- This was previously handled silently, which resulted in a smoother customer experience.
For a professional use case, it would be much better if:
- The chat remains visible, preserving the conversation history.
- A non-intrusive status message (e.g., âConnection lost â attempting to reconnectâŠâ) is shown inside the chat area instead of replacing the entire interface.
- The client automatically retries connection using exponential backoff until the connection is restored.
- The user is only prompted to refresh if reconnection attempts fail after a defined threshold.
This way, short-term disconnects (which are inevitable with websockets) would not make the chatbot look broken to customers.
Could you confirm if this reconnection behavior can be configured today in Botpress Cloud, or if it could be added as an improvement? This would make a huge difference for anyone using the embedded webchat in a live, customer-facing environment.
Thanks in advance,