add connect method

to accomodate this pull request for socket.io https://github.com/Automattic/socket.io-client/pull/732