Const
You can call .subscribe() on this RxJS Observable.
.subscribe()
import { PrivateWs } from 'ts-kraken'; PrivateWs.disconnected$.subscribe(() => { console.log('Private WebsocketV2 connection closed!\n'); // Code to handle connection lost here... }); Copy
import { PrivateWs } from 'ts-kraken'; PrivateWs.disconnected$.subscribe(() => { console.log('Private WebsocketV2 connection closed!\n'); // Code to handle connection lost here... });
You can call
.subscribe()
on this RxJS Observable.