diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-15 05:59:53 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-15 07:06:09 +0800 |
commit | 5c40c466f6e9f690afa86f23dd5ba240691dceb8 (patch) | |
tree | c7eda62370f6dff4f4fd253dc1484705ea6f3cb9 /packages/connect/src/ws_orderbook_channel.ts | |
parent | ce88086e080e05ed71c1ef4e31f2d0ce530af67f (diff) | |
download | dexon-0x-contracts-5c40c466f6e9f690afa86f23dd5ba240691dceb8.tar dexon-0x-contracts-5c40c466f6e9f690afa86f23dd5ba240691dceb8.tar.gz dexon-0x-contracts-5c40c466f6e9f690afa86f23dd5ba240691dceb8.tar.bz2 dexon-0x-contracts-5c40c466f6e9f690afa86f23dd5ba240691dceb8.tar.lz dexon-0x-contracts-5c40c466f6e9f690afa86f23dd5ba240691dceb8.tar.xz dexon-0x-contracts-5c40c466f6e9f690afa86f23dd5ba240691dceb8.tar.zst dexon-0x-contracts-5c40c466f6e9f690afa86f23dd5ba240691dceb8.zip |
Update json-schemas, update HTTPClient types
Diffstat (limited to 'packages/connect/src/ws_orderbook_channel.ts')
-rw-r--r-- | packages/connect/src/ws_orderbook_channel.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/connect/src/ws_orderbook_channel.ts b/packages/connect/src/ws_orderbook_channel.ts index d09fd375d..3d9230792 100644 --- a/packages/connect/src/ws_orderbook_channel.ts +++ b/packages/connect/src/ws_orderbook_channel.ts @@ -8,7 +8,7 @@ import { OrdersChannelMessageTypes, } from './types'; import { assert } from './utils/assert'; -import { orderbookChannelMessageParser } from './utils/orderbook_channel_message_parser'; +import { ordersChannelMessageParser } from './utils/orderbook_channel_message_parser'; /** * This class includes all the functionality related to interacting with a websocket endpoint @@ -72,7 +72,7 @@ export class WebSocketOrderbookChannel implements OrderbookChannel { } try { const data = message.data; - const parserResult = orderbookChannelMessageParser.parse(data); + const parserResult = ordersChannelMessageParser.parse(data); const subscriptionOpts = this._subscriptionOptsList[parserResult.requestId]; if (_.isUndefined(subscriptionOpts)) { this._handler.onError( @@ -82,10 +82,6 @@ export class WebSocketOrderbookChannel implements OrderbookChannel { return; } switch (parserResult.type) { - case OrdersChannelMessageTypes.Snapshot: { - this._handler.onSnapshot(this, subscriptionOpts, parserResult.payload); - break; - } case OrdersChannelMessageTypes.Update: { this._handler.onUpdate(this, subscriptionOpts, parserResult.payload); break; |