Class: Client
Defined in: livelink.js/sources/session/Client.ts:20
A client in a session.
A client represents an instance of a 3dverse user viewing the session.
A user can have multiple clients in the same session.
Clients must not be instantiated but can be accessed through the Session object.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
session_id | readonly | UUID | The unique identifier of the session the client is associated with. |
Accessors
id
Get Signature
get id(): UUID;
Defined in: livelink.js/sources/session/Client.ts:59
The unique identifier of the client.
Returns
user_id
Get Signature
get user_id(): UUID;
Defined in: livelink.js/sources/session/Client.ts:67
The id of the user that the client is associated with. Note that the same user can have multiple clients in the same session.
Returns
username
Get Signature
get username(): string;
Defined in: livelink.js/sources/session/Client.ts:74
The username of the user that the client is associated with.
Returns
string
is_external
Get Signature
get is_external(): boolean;
Defined in: livelink.js/sources/session/Client.ts:81
Indicates if the client is external to the current session.
Returns
boolean
Methods
getCameraEntities()
getCameraEntities(): Promise<Entity[]>;
Defined in: livelink.js/sources/session/Client.ts:116
Returns the camera entities that the client is using.
Returns
Promise<Entity[]>
getHoveredEntity()
getHoveredEntity(): Promise<Entity | null>;
Defined in: livelink.js/sources/session/Client.ts:137
Returns the entity that the client's mouse pointer is currently hovering over.
Returns
Promise<Entity | null>