Skip to main content

LatestEvents Interface

Events from LatestRaw.

This API is provided as a beta preview and may change without notice.

To use, import via @fluidframework/presence/beta.

For more information about our API support guarantees, see here.

Sealed

This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.

Signature

/** @sealed */
export interface LatestEvents<T, TRemoteValueAccessor extends ValueAccessor<T> = ProxiedValueAccessor<T>>

Type Parameters

ParameterConstraintDefaultDescription
T
TRemoteValueAccessorValueAccessor<T>ProxiedValueAccessor<T>

Events

PropertyAlertsTypeDescription
localUpdatedBeta(update: { value: DeepReadonly<JsonSerializable<T>>; }) => voidRaised when local client's value is updated, which may be the same value.
remoteUpdatedBeta(update: LatestClientData<T, TRemoteValueAccessor>) => voidRaised when remote client's value is updated, which may be the same value.

Event Details

localUpdated

Raised when local client's value is updated, which may be the same value.

This API is provided as a beta preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

localUpdated: (update: {
value: DeepReadonly<JsonSerializable<T>>;
}) => void;

Type: (update: { value: DeepReadonly<JsonSerializable<T>>; }) => void

remoteUpdated

Raised when remote client's value is updated, which may be the same value.

This API is provided as a beta preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

remoteUpdated: (update: LatestClientData<T, TRemoteValueAccessor>) => void;

Type: (update: LatestClientData<T, TRemoteValueAccessor>) => void