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