diff --git a/docs/client/api.html b/docs/client/api.html index 14304c28ef..c3fb3b9749 100644 --- a/docs/client/api.html +++ b/docs/client/api.html @@ -276,7 +276,7 @@ invocation object, which provides the following: begin running. * `userId`: the id of the current user. * `setUserId`: a function that associates the current client with a user. -* `session`: on the server, a reference to the [session handle](#meteor_onconnection) of the session this method call came in on. +* `session`: on the server, the [session](#meteor_onconnection) this method call came in on. Calling `methods` on the client defines *stub* functions associated with server methods of the same name. You don't have to define a stub for @@ -500,11 +500,11 @@ server. {{> api_box onConnection}} `onConnection` returns an object with a single method `stop`. Calling -`stop` unregisters the callback, so that the callback will no longer +`stop` unregisters the callback, so that this callback will no longer be called on new connections. -The callback is called with a single argument, a `SessionHandle`. -The `SessionHandle` is an object containing the following fields: +The callback is called with a single argument, the `session`. +The session is an object containing the following fields: