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!
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!