https://github.com/benlodotcom/BLWebSocketsServer
尝试了几个server只有这个成功运行了
两处改动
1.ViewController.h
UIWebView必须是strong的,不能是weak
2.build setting :Objective-C Automatic Reference Counting设置成false
另外
https://github.com/mirek/CoreWebSocket
不好使
什么.a编译不过
https://github.com/robbiehanson/CocoaHTTPServer
这个比较全,但是是mac下的server
参考
http://stackoverflow.com/questions/11873918/on-device-ios-websocket-server
尝试了几个server只有这个成功运行了
两处改动
1.ViewController.h
UIWebView必须是strong的,不能是weak
2.build setting :Objective-C Automatic Reference Counting设置成false
另外
https://github.com/mirek/CoreWebSocket
不好使
什么.a编译不过
https://github.com/robbiehanson/CocoaHTTPServer
这个比较全,但是是mac下的server
参考
http://stackoverflow.com/questions/11873918/on-device-ios-websocket-server
iOS WebSocket服务器搭建

本文介绍了一种在iOS设备上成功搭建WebSocket服务器的方法。通过使用BLWebSocketsServer项目,解决了UIWebView内存管理及Objective-C自动引用计数的问题,并对比了其他几种WebSocket服务器实现方案。
1617

被折叠的 条评论
为什么被折叠?



