I’ve just written a sample application for creating sockets in webOS applications. You can read the full blog post about it on the protonet homepage

http://protonet.info

The source code for it is available on protonet’s github page

Regards,
Reza