JSClientInformation
Overview
This module provides information about connected clients within the system. It allows access to client-related details, including application type, client identifiers, host information, user details, and session timings. This utility is particularly useful for monitoring and managing client connections effectively.
Client Information Access
The available methods offer granular details for each client. These include the type of application the client is using, the unique client ID, and timestamps such as login and idle times. Additionally, it retrieves the solution currently open, the user’s host address, and user-specific information like name and ID. Deprecated methods like getClientId and getUserUid are still available for backward compatibility.
The module also supports features specific to NGClients, such as fetching the last accessed time and the status line. This makes it a comprehensive tool for administrators to understand client behavior and manage application usage.
Methods Summarized
Gets the last date and time when a user has physically accessed the application.
This returns the status line of a NGClient (other clients don't have a value for this)
Methods Detailed
getApplicationType()
The type of the application started by this client.
Returns: Number The application type used by the client.
Sample
getClientID()
The ID of this client.
Returns: String A unique identifier for the client.
Sample
getHostAddress()
The host address of this client.
Returns: String The IP address of the client machine.
Sample
getHostIdentifier()
The host identifier of this client.
Returns: String A unique identifier for the client host.
Sample
getHostName()
The host name of this client.
Returns: String The name of the client’s host machine.
Sample
getIdleTime()
The time and date since the user has been idle.
Returns: Date The duration since the client became idle.
Sample
getLastAccessedTime()
Gets the last date and time when a user has physically accessed the application. NGClient only!
Returns: Date a date object or null if the client doesn't support this
Sample
getLoginTime()
The time and date the user logged into the system.
Returns: Date The timestamp when the user logged in.
Sample
getOpenSolutionName()
The name of the solution that is currently open by the client.
Returns: String The currently active solution for the client.
Sample
getStatusLine()
This returns the status line of a NGClient (other clients don't have a value for this)
Returns: String a string that is the status line as reported on the admin page.
Sample
getUserName()
The name of the user who is logged in at this client.
Returns: String The username associated with the client session.
Sample
getUserUID()
The ID of the user who is logged in at this client.
Returns: String A unique identifier for the logged-in user.
Sample
Last updated
Was this helpful?