EventSource icon indicating copy to clipboard operation
EventSource copied to clipboard

Received data splits if is too long

Open andrey-skl opened this issue 7 years ago • 1 comments

Extracted from https://github.com/neilco/EventSource/issues/9#issuecomment-294306741

My server returns data in single line. But if it is very large (a few dozen screens if use line-breaks, I may measure if needed), looks like URLSession calls didReceiveData with parts of payload. I found it here. So payload just comes broken.

andrey-skl avatar Apr 15 '17 19:04 andrey-skl

@neilco Thank you for pointing how to fix this, but I'm afraid I can't – I just don't know ObjC. I guess there should be some data concatenation and end detection logic implemented as well.

andrey-skl avatar Apr 15 '17 20:04 andrey-skl