简体   繁体   English

在设备iOS websocket服务器上

[英]On device iOS websocket server

Looking to implement websockets communication between a UIWebView in iOS with javascript to a local on the device websockets server in objective-c. 希望在iOS中将UIWebView与javascript之间的websockets通信实现到objective-c中设备websockets服务器上的本地。 Anyone seen a sample code set for setting a local websocket server on device for iOS so that the web view half can easily talk to the native container and vice versa? 有人看过一个示例代码集,用于在iOS设备上设置本地websocket服务器,以便Web视图一半可以轻松地与本机容器对话,反之亦然?

I have made a websocket server that runs on iOS. 我已经制作了一个在iOS上运行的websocket服务器。 It is a wrapper around libwebsockets, the code is on github: https://github.com/benlodotcom/BLWebSocketsServer . 它是libwebsockets的包装器,代码在github上: https//github.com/benlodotcom/BLWebSocketsServer

试试这个库https://github.com/robbiehanson/CocoaHTTPServer它有一个带有websockets的MAC和IOS示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM