@@ -66,7 +66,7 @@ ddpclient.connect(function(error) {
6666 }, 3000 );
6767
6868 /*
69- * Call a Meteor Method while passing in a random seed.
69+ * Call a Meteor Method while passing in a random seed.
7070 * Added in DDP pre2, the random seed will be used on the server to generate
7171 * repeatable IDs. This allows the same id to be generated on the client and server
7272 */
@@ -75,16 +75,16 @@ ddpclient.connect(function(error) {
7575
7676 ddpclient .callWithRandomSeed (
7777 ' createPost' , // name of Meteor Method being called
78- [{ _id : random .id (), // generate the id on the client
79- body : " asdf" }],
78+ [{ _id : random .id (), // generate the id on the client
79+ body : " asdf" }],
8080 " randomSeed" , // pass the same seed to the server
8181 function (err , result ) { // callback which returns the method call results
8282 console .log (' called function, result: ' + result);
8383 },
84- function () { // callback which fires when server has finished
84+ function () { // callback which fires when server has finished
8585 console .log (' updated' ); // sending any updated documents as a result of
86- console .log (ddpclient .collections .posts ); // calling this method
87- }
86+ console .log (ddpclient .collections .posts ); // calling this method
87+ }
8888 );
8989
9090 /*
@@ -143,4 +143,4 @@ Contributions:
143143 * Mike Bannister (@possiblities )
144144 * Chris Mather (@eventedmind )
145145 * James Gill (@jagill )
146- * Vaughn Iverson
146+ * Vaughn Iverson ( @ vsivsi )
0 commit comments