diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-17 18:33:43 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-17 18:33:43 +0800 |
commit | b750ce8be641cd7fe8e7570a7cc49b51a90467cc (patch) | |
tree | 963e68d2bfbea73923ef64dd58f95932709ac032 /packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts | |
parent | 03a6a088c5f1a086c1f3f02a0a70edaea3603860 (diff) | |
download | dexon-0x-contracts-b750ce8be641cd7fe8e7570a7cc49b51a90467cc.tar dexon-0x-contracts-b750ce8be641cd7fe8e7570a7cc49b51a90467cc.tar.gz dexon-0x-contracts-b750ce8be641cd7fe8e7570a7cc49b51a90467cc.tar.bz2 dexon-0x-contracts-b750ce8be641cd7fe8e7570a7cc49b51a90467cc.tar.lz dexon-0x-contracts-b750ce8be641cd7fe8e7570a7cc49b51a90467cc.tar.xz dexon-0x-contracts-b750ce8be641cd7fe8e7570a7cc49b51a90467cc.tar.zst dexon-0x-contracts-b750ce8be641cd7fe8e7570a7cc49b51a90467cc.zip |
Stop subscriptions from unsubscribing on recoverable network issues
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts index 8b7148aed..0791c62f5 100644 --- a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts @@ -988,12 +988,14 @@ export class ExchangeWrapper extends ContractWrapper { * @param indexFilterValues An object where the keys are indexed args returned by the event and * the value is the value you are interested in. E.g `{maker: aUserAddressHex}` * @param callback Callback that gets called when a log is added/removed + * @param isVerbose Enable verbose subscription warnings (e.g recoverable network issues encountered) * @return Subscription token used later to unsubscribe */ public subscribe<ArgsType extends ExchangeEventArgs>( eventName: ExchangeEvents, indexFilterValues: IndexedFilterValues, callback: EventCallback<ArgsType>, + isVerbose: boolean = false, ): string { assert.doesBelongToStringEnum('eventName', eventName, ExchangeEvents); assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); @@ -1005,6 +1007,7 @@ export class ExchangeWrapper extends ContractWrapper { indexFilterValues, artifacts.Exchange.compilerOutput.abi, callback, + isVerbose, ); return subscriptionToken; } |