Firdavs Khaydar
Firdavs Khaydar
Nope, still don’t know how to solve this.
@joetam I posted an example here https://github.com/Instagram/IGListKit/issues/1345#issuecomment-518505712
Could you share some additional examples of chunks that are failing to parse? And thanks for the kind words about the project 👍
Thank you for the example. I've saved a few requests with responses to test
Hard to tell without proper testing. My guess is that there's a problem with the Data -> String -> Data conversion. Storing the raw Data, instead of converting the event's...
I meant the parsing inside the package which happens here: https://github.com/Recouse/EventSource/blob/039a80eda0b17a6c55bfe2ad6f7aaa9df714fb4f/Sources/EventSource/ServerMessage.swift#L56 What's happening when you stream events: 1. `EventSource` gets `Data` from the server and converts it to a `String`....
The `EventType.closed` event is triggered only when the connection is manually closed, the server responds with a 204 status code, an error occurs, or the parent task running the `EventSource.DataTask`...
Yeah, the method mentioned in the README is outdated. I need to update it. For now, you can close the connection by cancelling the parent Task: ```swift let task =...
> But I have to ask still if canceling the task itself will stop the async streams and close them up nicely? or at least as nice as possible... Yes,...
Hi, yes, that would be a great addition. Thank you for the suggestion! Would you like to open the PR for that, or would you prefer that I handle it?