Another session -> connection renaming.
Clarify note on client reconnections.
review part 1: docs, style, etc.
typo.
need to pass through variable that is used.
safety belts.
Make onClose fire immediately instead of never on already closed connection.
Use an object instead of an array to store connection callbacks. This way we can ensure a callback is never called after its stop handle is called.
Merge remote-tracking branch 'upstream/pr-1611' into hash-login-tokens
In _setLoginToken we need to add the connection to the map before
calling `findOne`, because if the the token is deleted in the database
the `observe` callback can run in another fiber before our `findOne`
call returns and it will need the connection to be in the map.
Clarify and fix comments.