Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement and communicate via websockets in an iOS-app?

I want to create a simple app which contains a UIWebview. Now I want to communicate via websockets with that page. For example when I click on a button on that page, I want to get some strings from that server, so I can work with that information within my app.

Is that possible? Or are there other ways to do that? Thanks for every comment..

like image 856
geforce Avatar asked Dec 07 '11 12:12

geforce


2 Answers

I just released SocketRocket, a native WebSocket library that conforms to the latest standard.

The author of the iOS libPusher library has a branch that uses SocketRocket too.

like image 112
mikelikespie Avatar answered Sep 24 '22 05:09

mikelikespie


It might be worth checking out Pusher (note: I am a co-founder), as we have an iOS library which will save you a lot of hassle: https://github.com/lukeredpath/libPusher

like image 34
dctanner Avatar answered Sep 23 '22 05:09

dctanner