Registry that holds references to all the created topics.

Singleton design pattern. To get the instance use

this.load() Note: This singleton way is bad, because it is bound to happen, that someone just calls the constructor which will not create the registry if it does not exist, which will lead to errors.

Constructors

Methods

  • Retrieve topic hash by the channel id.

    Parameters

    • channelID: string

    Returns Promise<undefined | SHA256Hash<Topic>>

  • Removes the topic from the TopicRegistry by the given topicID.

    Parameters

    • topicID: string

    Returns Promise<void>