Simple scenario:
socket = io.connect(...)
In a new socket.io 1.1.x you can do the following:
var manager = io.Manager('http://localhost:9823', { autoConnect: false });
Here is blog link.