Documentation
    Preparing search index...

    Interface INodeModule

    Contract for a module that can be attached to a IPeerkitNode

    The node calls init() when registering the module, then start() to begin activity. stop() terminates activity gracefully on shutdown.

    interface INodeModule {
        init(node: IPeerkitNode): void;
        start?(): Promise<void>;
        stop?(): Promise<void>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Returns Promise<void>

    • Returns Promise<void>