test socket on platform ios