You can access to the session details by using the session object while connected to a server :
session
def isReadOnly: Boolean : tells you if the current server is in read-only mode
def isReadOnly: Boolean
def id: Long : the session id
def id: Long
def password: Array[Byte] : the session password
def password: Array[Byte]
def diseredTimeout: Duration : the timeout you want to negociate with the server
def diseredTimeout: Duration
def negotiatedTimeout: Duration : the timeout given by the server
def negotiatedTimeout: Duration
def state: States.ConnectionState : the current session state
def state: States.ConnectionState
Example (while connected) :
val id = client.session.id
There was an error while loading. Please reload this page.