Function ServerSession.disconnect
Sends disconnect signal to remote server and stops internal tasks.
void disconnect
();
Note
Do not call any functions on this instance after disconnecting. Emitting further events will throw DisconnectedExceptions. The API instance will get destroy() ed.
This does not close the underlying stream.