add `autoConnect` option to wait with connecting
updated tests to reflect `autoConnect` option
Merge pull request #680 from FredyC/add-auto-connect

Add autoConnect option