Skip to content

4. Session

Pierre-Antoine Ganaye edited this page Jul 27, 2014 · 1 revision

You can access to the session details by using the session object while connected to a server :

def isReadOnly: Boolean : tells you if the current server is in read-only mode

def id: Long : the session id

def password: Array[Byte] : the session password

def diseredTimeout: Duration : the timeout you want to negociate with the server

def negotiatedTimeout: Duration : the timeout given by the server

def state: States.ConnectionState : the current session state

Example (while connected) :

val id = client.session.id
Clone this wiki locally