Class BridgeInfoStateSyncer<BridgeMappingInfo>

This class ensures that rooms contain a valid bridge info event (MSC2346) which displays the connected protocol, network and room.

Type Parameters

  • BridgeMappingInfo

Hierarchy

  • BridgeInfoStateSyncer

Constructors

  • Type Parameters

    • BridgeMappingInfo

    Parameters

    • bridge: Bridge
    • opts: Opts<BridgeMappingInfo>

    Returns BridgeInfoStateSyncer<BridgeMappingInfo>

Properties

EventType: "uk.half-shot.bridge" = "uk.half-shot.bridge"

Methods

  • Parameters

    • roomId: string
    • bridgeMappingInfo: BridgeMappingInfo

    Returns Promise<{ content: MSC2346Content; state_key: string; type: string }>

  • Check all rooms and ensure they have correct state.

    Parameters

    • allMappings: Record<string, BridgeMappingInfo[]>

      All bridged room mappings

    • concurrency: number = 3

      How many rooms to handle at a time, defaults to 3.

    Returns Promise<void>

Generated using TypeDoc