moozzyk / SignalR-Client-Swift

Swift SignalR Client for Asp.Net Core SignalR server
MIT License
356 stars 136 forks source link

Received Data Size Issue #287

Closed rohitdrish closed 1 year ago

rohitdrish commented 1 year ago

Not able to parse received data request if incoming data size is more than 2 mb.

Error message : input message size 2927303 exceeds maximum message size 1048576

if let idx = data.firstIndex(where: {$0 == 0x1e}) After commenting above line I am able to parse received data but I am not able to understand above code.

moozzyk commented 1 year ago

Please collect logs at the debug level and attach to this issue. 0x1e is a record separator. TBH, I am not sure how this code can work without it.

Also, what is your scenario? 2MB feels like a lot for a message.

moozzyk commented 1 year ago

Closing as requested information has not been provided.