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

keepalive is being sent on a disconnected socket #105

Closed
gmelika opened this issue Sep 9, 2017 · 1 comment
Closed

keepalive is being sent on a disconnected socket #105

gmelika opened this issue Sep 9, 2017 · 1 comment

Comments

@gmelika
Copy link

gmelika commented Sep 9, 2017

err /app/node_modules/gdax/node_modules/ws/lib/WebSocket.js:160
err     throw new Error('not opened');
err     ^
err 
Error Error: not opened
err     at WebSocket.ping (/app/node_modules/gdax/node_modules/ws/lib/WebSocket.js:160:11)
err     at null._repeat (/app/node_modules/gdax/lib/clients/websocket.js:77:19)
err     at wrapper [as _onTimeout] (timers.js:279:11)
err     at Timer.listOnTimeout (timers.js:92:15)

this is using 0.4.2, and looks like the following is the culprit:

https://github.com/coinbase/gdax-node/blob/98d044efba8329e0fd4f583ae2efaaf60ac81d8c/lib/clients/websocket.js#L76-L78

@fb55
Copy link
Contributor

fb55 commented Dec 26, 2017

Fixed in #150

@fb55 fb55 closed this as completed Dec 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants