Back to product page

Disconnected event


Fires when user leaves the server.

Syntax

  • Basic
Private Sub object_Disconnected(User)    
The Disconnected(object,User) syntax has these parts:
objectAwodSSHD object.
UserA SSHUser object. Reference to user who left the server.

Remarks

At this point Users.Count property will still have information about this user which will be decremented as soon as this event is left. For example, if there is only one user on your system and he disconnects, Users.Count will have value 1 at the time this event is fired, even if user already disconnected. This is left so you can make some changes or save state information for the user.

Platforms

Windows