You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My apologies for the delay in responding to your inquiry.
This library's primary motivation is to support LaunchDarkly SDKs. We need the SDKs to always be connected to the upstream data streams to ensure evaluations are up to date. So by default, when this library receives a disconnect, we want it to perform a reasonable backoff + jitter retry policy before continuing.
However, when instantiating this library, you can provide your own custom handler to the config. That handler has a method onClosed which you can use to then signal that the stream should be permanently shut down.
`// Tells the delegate that the task finished transferring data.
public func urlSession(_ session: URLSession,
task: URLSessionTask,
didCompleteWithError error: Error?) {
utf8LineParser.closeAndReset()
let currentRetry = eventParser.reset()
这个方法在 readyState = .closed 之后,为什么有 sleep 后重新连接的逻辑,如何设置可以终止呢?
The text was updated successfully, but these errors were encountered: