Skip to content 

@fluidframework/container-loader Package

Packages > @fluidframework/container-loader

Classes

List of classes contained in this package or namespace
Class Description
Audience Audience represents all clients connected to the op stream.
Container
DeltaManager Manages the flow of both inbound and outbound messages. This class ensures that shared objects receive delta messages in order regardless of possible network conditions or timings causing out of order delivery.
Loader Manages Fluid resource loading
RelativeLoader

Enumerations

List of enums contained in this package or namespace
Enumeration Description
ConnectionState
ReconnectMode

Functions

List of functions contained in this package or namespace
Function Description
logNetworkFailure(logger, event, error)
waitForConnectedState(minDelay) Wait for browser to get to connected state. If connected, waits minimum of minDelay anyway (between network retries) If disconnected, polls every 30 seconds anyway, to make sure we are not getting stuck because of wrong signal Note that browsers will have false positives (like having Hyper-V adapter on machine, or machine connected to router that is not connected to internet) But there should be no false negatives. The only exception - Opera returns false when user enters "Work Offline" mode, regardless of actual connectivity.

Interfaces

List of interfaces contained in this package or namespace
Interface Description
IConnectionArgs
IContainerConfig
IDeltaManagerInternalEvents Includes events emitted by the concrete implementation DeltaManager but not exposed on the public interface IDeltaManager

Type Aliases

List of type aliases contained in this package or namespace
Type Alias Description
DetachedContainerSource

Enumerations

ConnectionState enum

Signature:

export declare enum ConnectionState 

Enumeration Members

List of members in use in this enum
Member Value Description
Connected 2 The document is fully connected
Connecting 1 The document has an inbound connection but is still pending for outbound deltas
Disconnected 0 The document is no longer connected to the delta server

ReconnectMode enum

Signature:

export declare enum ReconnectMode 

Enumeration Members

List of members in use in this enum
Member Value Description
Disabled "Disabled"
Enabled "Enabled"
Never "Never"

Functions

logNetworkFailure

Signature:

export declare function logNetworkFailure(logger: ITelemetryLogger, event: ITelemetryErrorEvent, error?: any): void;

Parameters

List of parameters
Parameter Type Description
logger ITelemetryLogger
event ITelemetryErrorEvent
error any

Returns:

void

waitForConnectedState

Wait for browser to get to connected state. If connected, waits minimum of minDelay anyway (between network retries) If disconnected, polls every 30 seconds anyway, to make sure we are not getting stuck because of wrong signal Note that browsers will have false positives (like having Hyper-V adapter on machine, or machine connected to router that is not connected to internet) But there should be no false negatives. The only exception - Opera returns false when user enters “Work Offline” mode, regardless of actual connectivity.

Signature:

export declare function waitForConnectedState(minDelay: number): Promise<void>;

Parameters

List of parameters
Parameter Type Description
minDelay number

Returns:

Promise<void>

Type Aliases

DetachedContainerSource

Signature:

export declare type DetachedContainerSource = {
    codeDetails: IFluidCodeDetails;
    create: true;
} | {
    snapshot: ISnapshotTree;
    create: false;
};