aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/src/types.ts
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/types.ts
parente2b51c5dc46b30b21e0561689de1f9a3d0127554 (diff)
downloaddexon-sol-tools-c4bcf24640a6fafa214e37543df90f3df36a301f.tar
dexon-sol-tools-c4bcf24640a6fafa214e37543df90f3df36a301f.tar.gz
dexon-sol-tools-c4bcf24640a6fafa214e37543df90f3df36a301f.tar.bz2
dexon-sol-tools-c4bcf24640a6fafa214e37543df90f3df36a301f.tar.lz
dexon-sol-tools-c4bcf24640a6fafa214e37543df90f3df36a301f.tar.xz
dexon-sol-tools-c4bcf24640a6fafa214e37543df90f3df36a301f.tar.zst
dexon-sol-tools-c4bcf24640a6fafa214e37543df90f3df36a301f.zip
Add configurable heartbeat to WebSocketOrderbookChannel
Diffstat (limited to 'packages/connect/src/types.ts')
-rw-r--r--packages/connect/src/types.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/connect/src/types.ts b/packages/connect/src/types.ts
index 970eff498..5f837b0b3 100644
--- a/packages/connect/src/types.ts
+++ b/packages/connect/src/types.ts
@@ -44,6 +44,13 @@ export interface OrderbookChannel {
}
/*
+ * heartbeatInterval: Interval in milliseconds that the orderbook channel should ping the underlying websocket. Default: 15000
+ */
+export interface WebSocketOrderbookChannelConfig {
+ heartbeatIntervalMs?: number;
+}
+
+/*
* baseTokenAddress: The address of token designated as the baseToken in the currency pair calculation of price
* quoteTokenAddress: The address of token designated as the quoteToken in the currency pair calculation of price
* snapshot: If true, a snapshot of the orderbook will be sent before the updates to the orderbook