@fluidframework/container-loader Package
Packages > @fluidframework/container-loader
Classes
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
Enumeration | Description |
---|---|
ConnectionState | |
ReconnectMode |
Functions
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
Interface | Description |
---|---|
IConnectionArgs | |
IContainerConfig | |
IDeltaManagerInternalEvents | Includes events emitted by the concrete implementation DeltaManager but not exposed on the public interface IDeltaManager |
Type Aliases
Type Alias | Description |
---|---|
DetachedContainerSource |
Enumerations
ConnectionState enum
Signature:
export declare enum ConnectionState
Enumeration Members
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
Member | Value | Description |
---|---|---|
Disabled | "Disabled" |
|
Enabled | "Enabled" |
|
Never | "Never" |
Functions
logNetworkFailure
Signature:
export declare function logNetworkFailure(logger: ITelemetryLogger, event: ITelemetryErrorEvent, error?: any): void;
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
Parameter | Type | Description |
---|---|---|
minDelay | number |
Returns:
Promise<void>
Type Aliases
DetachedContainerSource
Signature:
export declare type DetachedContainerSource = {
codeDetails: IFluidCodeDetails;
create: true;
} | {
snapshot: ISnapshotTree;
create: false;
};