aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/connect/src')
-rw-r--r--packages/connect/src/ws_orderbook_channel.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/packages/connect/src/ws_orderbook_channel.ts b/packages/connect/src/ws_orderbook_channel.ts
index 01aaf4fd2..e6a1322d2 100644
--- a/packages/connect/src/ws_orderbook_channel.ts
+++ b/packages/connect/src/ws_orderbook_channel.ts
@@ -68,12 +68,10 @@ export class WebSocketOrderbookChannel implements OrderbookChannel {
this._client.close();
}
private _handleWebSocketMessage(message: any): void {
- // if we get a message with no data, alert all handlers and return
if (_.isUndefined(message.data)) {
this._handler.onError(this, new Error(`Message does not contain utf8Data`));
return;
}
- // try to parse the message data and route it to the correct handler
try {
const utf8Data = message.data;
const parserResult = orderbookChannelMessageParser.parse(utf8Data);