moved TmpSocket creation code into the connect function

hotfix for https://github.com/balderdashy/sails.io.js/issues/9. not working for multiple sockets.