Default iOS example doesn't read anything (-1)
Hi I am new to iOS working on my first app, sorry if this is my lack of understanding but it appears the default example returns -1 instead of apple.com HTML.
I want to make an app which reads RAW TCP from a chat server, I'm not sure if this library or any iOS library can work with RAW sockets, let me know if you have ideas there.
Thanks
You might try setting a timeout in the client.read function, seemed to work for me:
guard let response = client.read(1024*10 , timeout: 2000) else { return nil }
I believe this issue is only occurring in v2.0.2. The iOS example runs as expected in all previous versions.
@rke246 that fixed it. Thanks!