You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
descr: ["Access inside a method invocation. Boolean value, true if this invocation is a stub."]
382
390
};
383
391
392
+
Template.api.method_invocation_connection={
393
+
id: "method_connection",
394
+
name: "<i>this</i>.connection",
395
+
locus: "Server",
396
+
descr: ["Access inside a method invocation. The [connection](#meteor_onconnection) this method was received on. `null` if the method is not associated with a connection, eg. a server initiated method call."]
397
+
};
398
+
384
399
Template.api.error={
385
400
id: "meteor_error",
386
401
name: "new Meteor.Error(error, reason, details)",
@@ -479,6 +494,18 @@ Template.api.connect = {
479
494
]
480
495
};
481
496
497
+
Template.api.onConnection={
498
+
id: "meteor_onconnection",
499
+
name: "Meteor.onConnection(callback)",
500
+
locus: "Server",
501
+
descr: ["Register a callback to be called when a new DDP connection is made to the server."],
502
+
args: [
503
+
{name: "callback",
504
+
type: "function",
505
+
descr: "The function to call when a new DDP connection is established."}
0 commit comments