diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-17 08:03:11 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-17 08:03:11 +0800 |
commit | 64a85dfb9cc60212dcf1c70ca7be4874936dd332 (patch) | |
tree | 9052883b8893d2bfeb40525c3640987698481c68 /packages/connect/src/utils/assert.ts | |
parent | e079790f7fe82452471fc69fa9583c07848f801d (diff) | |
download | dexon-sol-tools-64a85dfb9cc60212dcf1c70ca7be4874936dd332.tar dexon-sol-tools-64a85dfb9cc60212dcf1c70ca7be4874936dd332.tar.gz dexon-sol-tools-64a85dfb9cc60212dcf1c70ca7be4874936dd332.tar.bz2 dexon-sol-tools-64a85dfb9cc60212dcf1c70ca7be4874936dd332.tar.lz dexon-sol-tools-64a85dfb9cc60212dcf1c70ca7be4874936dd332.tar.xz dexon-sol-tools-64a85dfb9cc60212dcf1c70ca7be4874936dd332.tar.zst dexon-sol-tools-64a85dfb9cc60212dcf1c70ca7be4874936dd332.zip |
Rename websocket files and types
Diffstat (limited to 'packages/connect/src/utils/assert.ts')
-rw-r--r-- | packages/connect/src/utils/assert.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/connect/src/utils/assert.ts b/packages/connect/src/utils/assert.ts index 353b7f29f..3d8f1c799 100644 --- a/packages/connect/src/utils/assert.ts +++ b/packages/connect/src/utils/assert.ts @@ -10,14 +10,14 @@ import * as _ from 'lodash'; export const assert = { ...sharedAssert, - isOrderbookChannelSubscriptionOpts(variableName: string, subscriptionOpts: any): void { + isOrdersChannelSubscriptionOpts(variableName: string, subscriptionOpts: any): void { sharedAssert.doesConformToSchema( variableName, subscriptionOpts, schemas.relayerApiOrdersChannelSubscribePayload, ); }, - isOrderbookChannelHandler(variableName: string, handler: any): void { + isOrdersChannelHandler(variableName: string, handler: any): void { sharedAssert.isFunction(`${variableName}.onUpdate`, _.get(handler, 'onUpdate')); sharedAssert.isFunction(`${variableName}.onError`, _.get(handler, 'onError')); sharedAssert.isFunction(`${variableName}.onClose`, _.get(handler, 'onClose')); |