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
/** Access inside a method invocation. Boolean value, true if this invocation is a stub. */
38
+
isSimulation: boolean;
39
+
/** The id of the user that made this method call, or `null` if no user was logged in. */
40
+
userId: string|null;
41
+
/**
42
+
* Access inside a method invocation. The connection that this method was received on. `null` if the method is not associated with a connection, eg. a server initiated method call. Calls
43
+
* to methods made from a server method which was in turn initiated from the client share the same `connection`. */
44
+
connection: BaseMeteor.Connection|null;
45
+
/**
46
+
* Set the logged in user.
47
+
* @param userId The value that should be returned by `userId` on this connection.
48
+
*/
49
+
setUserId(userId: string|null): void;
50
+
/** Call inside a method invocation. Allow subsequent method from this client to begin running in a new fiber. */
51
+
unblock(): void;
52
+
}
53
+
54
+
/**
55
+
* Defines functions that can be invoked over the network by clients.
56
+
* @param methods Dictionary whose keys are method names and values are functions.
* Access inside a method invocation. The [connection](#meteor_onconnection) that this method was received on. `null` if the method is not associated with a connection, eg. a server
61
132
* initiated method call. Calls to methods made from a server method which was in turn initiated from the client share the same `connection`.
0 commit comments