This is example code showing how to use websockets from iOS and Android, in the form of a very simple chat service.
A simple websocket server written in Ruby.
Browser client in HTML and JavaScript.
iOS client in Objective-C.
Android client in Java.