iOS 上的 WebSocket [英] WebSockets on iOS
问题描述
我读过 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.
例如 http://yaws.hyber.org/websockets_example.yaws 会使程序崩溃移动 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 设置代理时,移动 Safari 只会因 websockets 崩溃.
I may have found the solution. Mobile Safari only crashes with websockets when you have setup a proxy over wifi.
这篇关于iOS 上的 WebSocket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!