Connect
How to establish a connection
To get a connection just pass in the endpoint to the server.
var conn = new XSockets.WebSocket('ws://localhost:4502',['chat']);
Note that the second parameter is an array of controllers to connect to. We only use one controller in this sample.