Joannesalfa, I tried numerous times to post a tutorial to go with this example, but I kept getting a Server URI error. I think it has something to do with the Scirra Website, I'm not sure, but I took my example down because I had AS exams and I couldn't leave the server running on my computer.
Here is the basics of WebSockets:
WebSockets are upgraded HTTP requests that need a specialised server application to handle them. You can create one yourself, or use an existing Websocket server as a base. I originally used a Node.JS implementation, but I switched to C# for better SQL support.
The test at websocket.org/echo.html is essentially the same as my .capx file in the sense that it is just a client application. You need to open a Websocket connection to a server application to enable communication.
There are no hosting services that provide Websocket services per se. A Websocket server is a stand-alone application that you connect multiple clients to.
If you wanted to work with my example .capx, here's a few things that will help:
This is a server implementation in C# that I use. The base server allows you to listen for connection requests on a port that you choose, and then accept connections and incomming messages for each connection. What you want to do with those messages is something you have to write yourself.
In my example .capx, I believe there is a global variable containing the location of the websocket server. If you are running the server on the same computer you use the client, change the server location to localhost. That way you can send messages to your server.
If you need anymore help, reply here :) I'm gonna try my tutorial again, this seems like a problem for a few people.