aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/src/utils
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-17 08:03:11 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-17 08:03:11 +0800
commit64a85dfb9cc60212dcf1c70ca7be4874936dd332 (patch)
tree9052883b8893d2bfeb40525c3640987698481c68 /packages/connect/src/utils
parente079790f7fe82452471fc69fa9583c07848f801d (diff)
downloaddexon-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')
-rw-r--r--packages/connect/src/utils/assert.ts4
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'));