tekgeek
tekgeek

Reputation: 81

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. 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?

Upvotes: 8

Views: 8530

Answers (2)

benlodotcom
benlodotcom

Reputation: 46

I have made a websocket server that runs on iOS. It is a wrapper around libwebsockets, the code is on github: https://github.com/benlodotcom/BLWebSocketsServer .

Upvotes: 2

angel of code
angel of code

Reputation: 686

try this library https://github.com/robbiehanson/CocoaHTTPServer it has a MAC and IOS example with websockets.

Upvotes: 1

Related Questions