Skip to content

Clarify behavior of 'close()' in the docs #83

Description

@etienne428

I am using secret-stack for an app and it took me a very long time to figure out how to call app.close(). Documentation says it can be called without argument or with '(err, callback)', but that didn't work well, and looking at the source code wasn't helpful.
In the server test (

alice.close(true); bob.close(true)
), one calls 'alice.close(true)', which seem to be the way to go.

Optionally takes `(err, callback)`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions