Variable disconnected$Const

disconnected$: Subject<unknown> = ...

You can call .subscribe() on this RxJS Observable.

   import { PrivateWs } from 'ts-kraken';

PrivateWs.disconnected$.subscribe(() => {
console.log('Private WebsocketV2 connection closed!\n');

// Code to handle connection lost here...
});