File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,17 @@ class LoopApi extends BaseApi<LoopEvents> {
4242 this . debug = createRpc ( wasm , Debug ) ;
4343 }
4444
45+ /**
46+ * Connect to the Loop streaming endpoint
47+ */
48+ connectStreams ( ) {
49+ this . subscribe (
50+ SwapClient . Monitor ,
51+ new LOOP . MonitorRequest ( ) ,
52+ ( swapStatus : any ) => this . emit ( 'status' , swapStatus . toObject ( ) )
53+ ) ;
54+ }
55+
4556 subscribe (
4657 call : any ,
4758 request : any ,
Original file line number Diff line number Diff line change @@ -391,8 +391,8 @@ export default class LNC {
391391 onError ?: ( res : Error ) => void
392392 ) {
393393 const method = `${ methodDescriptor . service . serviceName } .${ methodDescriptor . methodName } ` ;
394- log . debug ( `${ method } request` , request . toObject ( ) ) ;
395- const hackedReq = this . hackRequest ( request . toObject ( ) ) ;
394+ log . debug ( `${ method } request` , request ) ;
395+ const hackedReq = this . hackRequest ( request ) ;
396396 log . debug ( `${ method } hacked request` , hackedReq ) ;
397397 const reqJSON = JSON . stringify ( hackedReq ) ;
398398 this . wasmNamespace . wasmClientInvokeRPC (
You can’t perform that action at this time.
0 commit comments