本文介绍了iOS上的WebSockets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我读过WebSockets适用于iOS 4.2及更高版本。我可以验证确实存在WebSocket对象。但我找不到一个可在手机上运行的WebSocket示例。
I've read that WebSockets work on iOS 4.2 and above. And I can verify that there is indeed a WebSocket object. But I can't find a single working WebSocket example that works on the phone.
例如将使Mobile Safari应用程序崩溃。有没有人让WebSockets在手机上成功运行?
For example http://yaws.hyber.org/websockets_example.yaws will crash the Mobile Safari app. Has anyone got WebSockets working successfully on the phone?
推荐答案
我可能已找到解决方案。当您通过wifi设置代理时,Mobile Safari仅与websockets崩溃。
I may have found the solution. Mobile Safari only crashes with websockets when you have setup a proxy over wifi.
这篇关于iOS上的WebSockets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!