The disconnect method terminates a remote session.
Javascript Syntax
thinvnc.disconnect();
See also
See also the disconnect method.