-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Describe the Enhancement you want
A clear and concise description of what the improvement does.
The enhancement allows customizing the message displayed in the toast notification when a socket disconnection error occurs. Currently, the error message is hardcoded or generic, which limits the ability to provide more user-friendly or context-specific feedback.
- Which feature do you want to improve? (and what problem does it have)
The feature to improve is the toast error notification system related to socket disconnections. The current implementation does not support editing or overriding the default error message, making it less informative or potentially confusing for end users.
- What is the benefit of the enhancement?
This enhancement provides greater flexibility and control over user-facing messages. It enables developers to tailor error feedback based on the application’s context, improving UX and making debugging easier for end users.
- Show an example/usecase were the improvement are needed.
In a chat application, when the socket connection fails, the current message might be: "Socket error occurred."
With this improvement, it can be customized to: "Connection lost. Trying to reconnect..." or "You have been disconnected. Please check your internet connection."
Additional context
It could be added as a configuration parameter in rx.App or rx.Config.
