Stone.js API
    Preparing search index...

    Holds the configured channels and hands one out by name.

    The same shape every driver-based module in the framework uses, and the same lifetime: built for one event, like the container it belongs to. It is a registry of factories, so rebuilding it costs nothing. Nothing here holds state between events; a channel that needs a connection holds it itself, because a connection is a resource and the channel is the boundary that owns it.

    Index
    • The channel a notification named.

      Parameters

      • name: string

        The channel's name.

      Returns NotificationChannel

      The channel.

      When nothing is registered under that name.

    • Whether a channel is registered under this name.

      Parameters

      • name: string

      Returns boolean

    • The names of every registered channel.

      Returns string[]

    • Register a channel to be built on first use.

      Parameters

      • name: string

        The name notifications refer to it by.

      • factory: () => NotificationChannel

        How to build it.

      Returns this

      This manager.