AutosoftDMS / SignalR-Swift

SignalR client library written in pure Swift
MIT License
60 stars 55 forks source link

Fixing bug for partly incoming data processing #36

Closed dair closed 6 years ago

dair commented 6 years ago

In my case, data from the server comes in chunks and one line could be split in half. But String.enumerateSubstrings(... .options: byLines) counts unfinished line just like finished. So the result was that event was not processing at all. Critical bug.

Changing from enumerateSubstrings to "\n" search fixes that.

dair commented 6 years ago

Anybody home?

@jordancamara ? @vldalx ?