Options
All
  • Public
  • Public/Protected
  • All
Menu

Live Share Host implementation used for local testing.

Hierarchy

  • TestLiveShareHost

Implements

Index

Constructors

  • new TestLiveShareHost(_getLocalTestContainerId?: (() => undefined | string), _setLocalTestContainerId?: ((containerId: string) => void)): TestLiveShareHost
  • Parameters

    • Optional _getLocalTestContainerId: (() => undefined | string)
        • (): undefined | string
        • Returns undefined | string

    • Optional _setLocalTestContainerId: ((containerId: string) => void)
        • (containerId: string): void
        • Parameters

          • containerId: string

          Returns void

    Returns TestLiveShareHost

Properties

clientsMeetingRoles: UserMeetingRole[] = ...
LOCAL_MODE_TEST_TOKEN: "test-token" = ...

Methods

  • getFluidToken(containerId?: string): Promise<string>
  • Attempts to save the ID of the Fluid container created to the hosts mapping service.

    remarks

    Hosts should return a containerState of "Added" if the mapping was successfully saved, otherwise a state of "Conflict" should be returned to indicate that another client has already saved a container ID for the current session.

    Parameters

    • containerId: string

    Returns Promise<IFluidContainerInfo>

    Information indicating the success of mapping assignment.

Generated using TypeDoc