尝试从iOS连接到Meteor时出现握手错误9806 [英] Getting handshake error 9806 while trying to connect to Meteor from iOS

查看:107
本文介绍了尝试从iOS连接到Meteor时出现握手错误9806的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的Swift应用程序中使用一个名为ObjectiveDDP的库.我可以这样连接到示例应用程序:

I am trying to use a library called ObjectiveDDP in my Swift app. I can connect to the sample app like this :

 var meteorClient = initialiseMeteor("pre2", "wss://ddptester.meteor.com/websocket");

当我尝试连接到本地流星服务器时,出现此错误: CFNetwork SSLHandshake失败(-9806)

When I am trying to connect to my local meteor server , I am getting this error : CFNetwork SSLHandshake failed (-9806)

我正在模拟器上运行iOS 8.1.知道我缺少什么吗?

I am running iOS 8.1 on Simulator. Any idea what I am missing ?

任何帮助将不胜感激.

Any help would be appreciated.

推荐答案

您的本地实例很可能不使用SSL.

It's quite likely your local instance does not use SSL.

因此httpswss之类的协议将无法连接.

So protocols like https or wss will not be able to connect.

尝试使用ws://代替wss://

这篇关于尝试从iOS连接到Meteor时出现握手错误9806的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆