Here is a kind of lua implementation of websocket (basically I ported https://github.com/lipp/lua-websockets to work with Gideros),
But it require also Struct library, for which I created Gideros plugin:
All the sources to build Android struct plugin or desktop struct plugin are there. For IOS you simply copy sources into plugin directory of xcode project.
Here is the example Gideros project with portet library (it also uses bitop and luasocket, you may have to re link luasocket .lua files to this example project from your own directory)