简体   繁体   English

SocketRocket无法在iOS 5.0上运行

[英]SocketRocket not working on iOS 5.0

I just made a simple real-time text chat application using SocketRocket. 我刚刚使用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... 它在iOS 6.0和5.1上运行良好,但是当我尝试在连接时运行它时,我得到以下错误...

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+. 我浏览了github上的问题,但无法找到任何内容,它声称可以在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. 我没有5.0的设备,所以我不确定手机是否以相同的方式失败。 Also, if I use ws as opposed to wss (encrypted), it seems to work fine. 另外,如果我使用ws而不是wss(加密),它似乎工作正常。

This error has been reported over problems with iOS's SSL authentication. 已报告此错误与iOS的SSL身份验证有关。 One report suggested changing from kCFStreamSocketSecurityLevelTLSv1 to kCFStreamSocketSecurityLevelSSLv3. 一份报告建议从kCFStreamSocketSecurityLevelTLSv1更改为kCFStreamSocketSecurityLevelSSLv3。

这是在最近提交给SocketRocket时解决的: https//github.com/square/SocketRocket/issues/77

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM