Skip to content

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

@etienne428

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)`

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