Skip to main content
Version: v2

Attendee Interface

A client within a Fluid session (period of container connectivity to service).

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 Attendee<SpecificAttendeeId extends AttendeeId = AttendeeId>

Type Parameters​

ParameterConstraintDefaultDescription
SpecificAttendeeIdAttendeeIdAttendeeId

Remarks​

Note: This is very preliminary attendee representation.

Attendee should be used as key to distinguish between different clients as they join, rejoin, and disconnect from a session. While a client's ClientConnectionId from getConnectionStatus() may change over time, Attendee will be fixed.

Properties​

PropertyModifiersTypeDescription
attendeeIdreadonlySpecificAttendeeIdThe session ID of the client that is stable over all connections.

Methods​

MethodReturn TypeDescription
getConnectionId()ClientConnectionIdGet current client connection ID.
getConnectionStatus()AttendeeStatusGet connection status of attendee.

Property Details​

attendeeId​

The session ID of the client that is stable over all connections.

Signature​

readonly attendeeId: SpecificAttendeeId;

Type: SpecificAttendeeId

Method Details​

getConnectionId​

Get current client connection ID.

Signature​

getConnectionId(): ClientConnectionId;

Remarks​

Connection ID will change on reconnect.

If getConnectionStatus() is (AttendeeStatus:variable).Disconnected, this will represent the last known connection ID.

Returns​

Current client connection ID.

Return type: ClientConnectionId

getConnectionStatus​

Get connection status of attendee.

Signature​

getConnectionStatus(): AttendeeStatus;

Returns​

Connection status of attendee.

Return type: AttendeeStatus