I want to send a file to iPhone using SwiftSocket. But the maximum size of the sent file is 132 kb.
I want to know what is the limitation for iOS or SwiftSocket?
How to increase the file size limit?
Code for calling the method Send:
switch client.send(data: myData) {
case .success:
return readResponse(from: client)
case .failure(let error):
appendToTextField(string: String(describing: error))
return nil
}
I debugged it. The data sent to the SwiftSocket method Sendis equal to the size of the file and it seems to receive the entire file. I can not find a bottleneck.
source
share