geforce
geforce

Reputation: 2653

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

Upvotes: 7

Views: 4526

Answers (2)

mikelikespie
mikelikespie

Reputation: 5842

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.

Upvotes: 6

dctanner
dctanner

Reputation: 94

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

Upvotes: 4

Related Questions