Question

I just made a simple real-time text chat application using SocketRocket. It works great on iOS 6.0 and 5.1 but when I try to run it on 5.0 when connecting I get the following error...

Websocket Failed With Error Error Domain=NSOSStatusErrorDomain Code=-9800 "The
operation couldn’t be completed. (OSStatus error -9800.)"
UserInfo=0x6e506e0 {}

Does anyone have any idea what this could mean or how to fix it? I browsed the issues on github but couldnt find anything and its claimed to work on iOS5+.

EDIT: To add, this is when I test on simulator. I dont have a device that has 5.0, so im not sure if fails on the phone in the same way. Also, if I use ws as opposed to wss (encrypted), it seems to work fine.

Was it helpful?

Solution 2

This was solved in a recent commit to SocketRocket: https://github.com/square/SocketRocket/issues/77

OTHER TIPS

This error has been reported over problems with iOS's SSL authentication. One report suggested changing from kCFStreamSocketSecurityLevelTLSv1 to kCFStreamSocketSecurityLevelSSLv3.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top