aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/src/schemas
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-02-16 06:22:00 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-02-16 16:20:27 +0800
commitc4bcf24640a6fafa214e37543df90f3df36a301f (patch)
tree5927c44fc2e5e17e5f5c7b752086e211da78cca7 /packages/connect/src/schemas
parente2b51c5dc46b30b21e0561689de1f9a3d0127554 (diff)
downloaddexon-0x-contracts-c4bcf24640a6fafa214e37543df90f3df36a301f.tar.gz
dexon-0x-contracts-c4bcf24640a6fafa214e37543df90f3df36a301f.tar.zst
dexon-0x-contracts-c4bcf24640a6fafa214e37543df90f3df36a301f.zip
Add configurable heartbeat to WebSocketOrderbookChannel
Diffstat (limited to 'packages/connect/src/schemas')
-rw-r--r--packages/connect/src/schemas/schemas.ts2
-rw-r--r--packages/connect/src/schemas/websocket_orderbook_channel_config_schema.ts7
2 files changed, 9 insertions, 0 deletions
diff --git a/packages/connect/src/schemas/schemas.ts b/packages/connect/src/schemas/schemas.ts
index 0b8b798a9..b9a8472fb 100644
--- a/packages/connect/src/schemas/schemas.ts
+++ b/packages/connect/src/schemas/schemas.ts
@@ -3,6 +3,7 @@ import { orderBookRequestSchema } from './orderbook_request_schema';
import { ordersRequestOptsSchema } from './orders_request_opts_schema';
import { pagedRequestOptsSchema } from './paged_request_opts_schema';
import { tokenPairsRequestOptsSchema } from './token_pairs_request_opts_schema';
+import { webSocketOrderbookChannelConfigSchema } from './websocket_orderbook_channel_config_schema';
export const schemas = {
feesRequestSchema,
@@ -10,4 +11,5 @@ export const schemas = {
ordersRequestOptsSchema,
pagedRequestOptsSchema,
tokenPairsRequestOptsSchema,
+ webSocketOrderbookChannelConfigSchema,
};
diff --git a/packages/connect/src/schemas/websocket_orderbook_channel_config_schema.ts b/packages/connect/src/schemas/websocket_orderbook_channel_config_schema.ts
new file mode 100644
index 000000000..2e9987e63
--- /dev/null
+++ b/packages/connect/src/schemas/websocket_orderbook_channel_config_schema.ts
@@ -0,0 +1,7 @@
+export const webSocketOrderbookChannelConfigSchema = {
+ id: '/WebSocketOrderbookChannelConfig',
+ type: 'object',
+ properties: {
+ heartbeatIntervalMs: { type: 'number' },
+ },
+};