IOS上websocket连接不上
在ANDROID上可以连接,但在IOS上却报-9801错误,在IOS的公众号网页中都可以,但就是在小程序中不行,求怎么解决
5 回复
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
我这也出现过这个错
WebSocket链接报错{“errMsg”:“未能完成操作。(“OSStatus”错误 -9801。)”}
解决方法:
1:检测URL是否支持TLS1.2
https://cloud.tencent.com/product/tools#userDefined12 用这个检测url
在

输入socket 的域名,点击立即检测,结果如下,不支持TLS1.2

2:升级服务器的配置
https://cloud.tencent.com/document/product/400/6973
根据里面的指南修改配置

3配置完了,再次检测,支持TLS1.2。问题解决
