Skip to main content

ISignalMessageBase Interface

Common interface between incoming and outgoing signals.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/driver-definitions/legacy.

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

Signature

export interface ISignalMessageBase<TMessage extends TypedMessage = TypedMessage>

Type Parameters

ParameterConstraintDefaultDescription
TMessageTypedMessageTypedMessage

Properties

PropertyAlertsModifiersTypeDescription
clientConnectionNumberBetaoptionalnumberCounts the number of signals sent by the sending client.
contentBetaTMessage["content"]Signal content
referenceSequenceNumberBetaoptionalnumberSequence number that indicates when the signal was created in relation to the delta stream
targetClientIdBetaoptionalstringClient ID of the singular client the signal is being (or has been) sent to. May only be specified when IConnect.supportedFeatures['submit_signals_v2'] is true, will throw otherwise.
typeBetaoptionalTMessage["type"]Signal type

Property Details

clientConnectionNumber

Counts the number of signals sent by the sending client.

This API is provided for existing users, but is not recommended for new users.

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

Signature

clientConnectionNumber?: number;

Type: number

content

Signal content

This API is provided for existing users, but is not recommended for new users.

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

Signature

content: TMessage["content"];

Type: TMessage["content"]

referenceSequenceNumber

Sequence number that indicates when the signal was created in relation to the delta stream

This API is provided for existing users, but is not recommended for new users.

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

Signature

referenceSequenceNumber?: number;

Type: number

targetClientId

Client ID of the singular client the signal is being (or has been) sent to. May only be specified when IConnect.supportedFeatures['submit_signals_v2'] is true, will throw otherwise.

This API is provided for existing users, but is not recommended for new users.

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

Signature

targetClientId?: string;

Type: string

type

Signal type

This API is provided for existing users, but is not recommended for new users.

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

Signature

type?: TMessage["type"];

Type: TMessage["type"]