Skip to main content

IConnection Interface

Base interface for information for each connection made to the Fluid session.

Signature​

export interface IConnection

Remarks​

This interface can be extended to provide additional information specific to each service.

Properties​

PropertyModifiersTypeDescription
idreadonlystringA unique ID for the connection. A single user may have multiple connections, each with a different ID.
modereadonly"write" | "read"Whether the connection is in read or read/write mode.

Property Details​

id​

A unique ID for the connection. A single user may have multiple connections, each with a different ID.

Signature​

readonly id: string;

Type: string

mode​

Whether the connection is in read or read/write mode.

Signature​

readonly mode: "write" | "read";

Type: "write" | "read"