aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-05-30 03:59:09 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-07-12 01:27:05 +0800
commite12f7c3026dd513a6444092ea7654598c71548ae (patch)
tree0769670ec255e4af1795c04020af8d451f395346 /packages
parentaf395eccda95f12ba14f40f9261443d24e48f455 (diff)
downloaddexon-sol-tools-e12f7c3026dd513a6444092ea7654598c71548ae.tar
dexon-sol-tools-e12f7c3026dd513a6444092ea7654598c71548ae.tar.gz
dexon-sol-tools-e12f7c3026dd513a6444092ea7654598c71548ae.tar.bz2
dexon-sol-tools-e12f7c3026dd513a6444092ea7654598c71548ae.tar.lz
dexon-sol-tools-e12f7c3026dd513a6444092ea7654598c71548ae.tar.xz
dexon-sol-tools-e12f7c3026dd513a6444092ea7654598c71548ae.tar.zst
dexon-sol-tools-e12f7c3026dd513a6444092ea7654598c71548ae.zip
Remove outdated comments
Diffstat (limited to 'packages')
-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);