Skip to content

Allow custom toast message for socket disconnection errors #5108

@lcastiglione

Description

@lcastiglione

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.

Image

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAnything you want improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions