PWS is a project mainly written in Java, it's free.
Processing websocket server
Processing Web Sockets
sock.html : sample client. If you have the new ios version, it'll send the acel data to the server.
websocket/ : the processing sketch that accepts the connection and grabs the data