Skip to content

Instantly share code, notes, and snippets.

@kschingiz
Created January 28, 2020 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kschingiz/57a7ff2968fe0646f6f55c2550169c73 to your computer and use it in GitHub Desktop.
Save kschingiz/57a7ff2968fe0646f6f55c2550169c73 to your computer and use it in GitHub Desktop.
import { HTTP } from "meteor/meteor";
import { TestCollection } from "../collections";
Meteor.methods({
testMethod(){
// blocking
const result = HTTP.get("https://google.com");
// blocking as well
return TestCollection.insert({
someField: "someValue"
})
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment