How to set socketTimeoutMS with meteor?

Does anyone know how to set this in meteor?

Mongo.setConnectionOptions({
  mongos: {
    socketOptions: {
      connectTimeoutMS: 30000,
      socketTimeoutMS: 30000,
    },
  },
});

unfortunately it sounds like you need to create a package with this code in it, and have it be the first package that is loaded?