Socket Setup on iOS 11 and 12