Variable disconnected$Const

disconnected$: Subject<unknown> = ...

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

   import { PublicWs } from 'ts-kraken';

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

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