문제

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.

도움이 되었습니까?

해결책 2

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top