Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Remove heartbeat from OrderbookSync signature
Browse files Browse the repository at this point in the history
  • Loading branch information
rmm5t committed Dec 25, 2017
1 parent 012458a commit ac4bda1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions lib/clients/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class WebsocketClient extends EventEmitter {

connect() {
if (this.socket) {
clearInterval(this.pinger);
this.socket.close();
}

Expand All @@ -42,8 +41,6 @@ class WebsocketClient extends EventEmitter {
}

disconnect() {
clearInterval(this.pinger);

if (!this.socket) {
throw new Error('Could not disconnect (not connected)');
}
Expand Down Expand Up @@ -74,7 +71,6 @@ class WebsocketClient extends EventEmitter {
}

onClose() {
clearInterval(this.pinger);
this.socket = null;
this.emit('close');
}
Expand Down
5 changes: 2 additions & 3 deletions lib/orderbook_sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ class OrderbookSync extends WebsocketClient {
productIDs,
apiURI = 'https://api.gdax.com',
websocketURI = 'wss://ws-feed.gdax.com',
auth = null,
{ heartbeat = false } = {}
auth = null
) {
super(productIDs, websocketURI, auth, { heartbeat });
super(productIDs, websocketURI, auth);
this.apiURI = apiURI;
this.auth = Utils.checkAuth(auth);

Expand Down

0 comments on commit ac4bda1

Please sign in to comment.