Socket Setup on iOS 9 and 10