Created
July 6, 2013 15:13
-
-
Save estark37/5940184 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Meteor.isClient) { | |
Test = new Meteor.Collection("test"); | |
Meteor.subscribe("testsub"); | |
} | |
if (Meteor.isServer) { | |
Test = new Meteor.Collection("test", { connection: null }); | |
Meteor.publish("testsub", function () { | |
return Test.find(); | |
}); | |
Test.insert({ foo: "bar" }); | |
Test.insert({ foo: "baz" }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment