Skip to content

How should I capture error information? #50

@aohanhe

Description

@aohanhe

Currently, when the specified URL for createSSEStream hasn't started or is deliberately interrupted, it keeps reconnecting automatically. However, in practical applications, we'd like these exceptions to show user-friendly reminders on the UI. I've tried using the handleError method and adding log printing through the onError parameter in listen for testing, but neither worked. Even when I set cancelOnError: true in listen, the stream doesn't stop 主动 but keeps retrying. Could you tell me what I'm doing wrong? thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions