Finished connect method for ios
Making iOS connection simpler