Closed wuqinqiang closed 11 months ago
Hi @wuqinqiang , have you confirmed the behavior of the server you are connecting to is not causing the issue? This library treats a termination by the server as unexpected, so that may be what is happening here. Another way to test it yourself could be connecting to example SSE services that I'm sure are hosted around the internet for developer purposes. Let us know!
It's my fault, thank you for your reply~
Describe the bug [LDEventSource] Connection unexpectedly closed.
To reproduce
my code
I noticed the error: Connection unexpectedly closed. but when I captured the packages, I saw a complete request and response net.csv
Expected behavior Print the content of each event from server side func onMessage(eventType: String, messageEvent: MessageEvent) { print("MyHandler eventType:(eventType),messageEvent:(messageEvent.data)") }
Logs
Library version 3.1.1 XCode and Swift version For instance, XCode 14.3.1
Platform the issue occurs on iPhone
Additional context