Skip to content

Commit

Permalink
Updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorpangloss committed Feb 12, 2016
1 parent ae07b9f commit b21e550
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ A Unity SDK for Meteor. Supports Unity3D 5.0.0 and higher!
yield return (Coroutine)Meteor.Accounts.LoginAsGuest ();
// Create a collection
var collection = Meteor.Collection<DocumentType>.Create ("collectionName");
var collection = new Meteor.Collection<DocumentType> ("collectionName");
// Add some handlers with the new observer syntax
var observer = new Meteor.Observe<DocumentType>(collection, added: (string id, DocumentType document) => {
var observer = collection.Find ().Observe (added: (string id, DocumentType document) => {
Debug.Log(string.Format("Document added:\n{0}", document.Serialize()));
};
});
// Subscribe
var subscription = Meteor.Subscription.Subscribe ("subscriptionEndpointName", /*arguments*/ 1, 3, 4);
Expand Down

0 comments on commit b21e550

Please sign in to comment.