I'm running code from the samples and it constantly reconnects because it's receiving LiveOrderbook.skippedMessage
here.
2017-09-29T00:47:16.409Z - info: Creating new Websocket connection to wss://ws-feed.gdax.com
2017-09-29T00:47:16.427Z - debug: Reconnecting to wss://ws-feed.gdax.com in 0 seconds...
2017-09-29T00:47:16.427Z - debug: Closing existing socket prior to reconnecting to wss://ws-feed.gdax.com
2017-09-29T00:47:16.672Z - debug: Connection to wss://ws-feed.gdax.com has been established.
2017-09-29T00:47:16.672Z - debug: Sending {"type":"subscribe","product_ids":["BTC-USD"],"channels":["level2","matches","ticker","user","heartbeat"]} message to WS server
2017-09-29T00:47:17.159Z - info: Snapshot received by LiveOrderbook Demo
2017-09-29T00:47:17.160Z - info: Dropped a message. Expected 2 but received 4118596218.
SKIPPED MESSAGE { expected_sequence: 2, sequence: 4118596218 }
Reconnecting to feed
2017-09-29T00:47:17.162Z - debug: Reconnecting to wss://ws-feed.gdax.com in 0 seconds...
2017-09-29T00:47:17.162Z - debug: Closing existing socket prior to reconnecting to wss://ws-feed.gdax.com
2017-09-29T00:47:17.163Z - debug: GDAX Feed subscriptions confirmed type=subscriptions, channels=[name=level2, product_ids=[BTC-USD], name=matches, product_ids=[BTC-USD], name=ticker, product_ids=[BTC-USD], name=user, product_ids=[BTC-USD], name=heartbeat, product_ids=[BTC-USD]]
2017-09-29T00:47:17.400Z - debug: Connection to wss://ws-feed.gdax.com has been established.
2017-09-29T00:47:17.401Z - debug: Resubscribing to BTC-USD...
2017-09-29T00:47:17.401Z - debug: Sending {"type":"subscribe","product_ids":["BTC-USD"],"channels":["level2","matches","ticker","user","heartbeat"]} message to WS server
2017-09-29T00:47:17.401Z - debug: Sending {"type":"subscribe","product_ids":["BTC-USD"],"channels":["level2","matches","ticker","user","heartbeat"]} message to WS server
2017-09-29T00:47:17.402Z - debug: Reconnection to BTC-USD successful
2017-09-29T00:47:17.854Z - info: Snapshot received by LiveOrderbook Demo
2017-09-29T00:47:17.854Z - info: Dropped a message. Expected 12 but received 4118596218.
SKIPPED MESSAGE { expected_sequence: 12, sequence: 4118596218 }
Reconnecting to feed
2017-09-29T00:47:17.855Z - debug: Reconnecting to wss://ws-feed.gdax.com in 0 seconds...
2017-09-29T00:47:17.855Z - debug: Closing existing socket prior to reconnecting to wss://ws-feed.gdax.com
2017-09-29T00:47:17.855Z - debug: GDAX Feed subscriptions confirmed type=subscriptions, channels=[name=level2, product_ids=[BTC-USD], name=matches, product_ids=[BTC-USD], name=ticker, product_ids=[BTC-USD], name=user, product_ids=[BTC-USD], name=heartbeat, product_ids=[BTC-USD]]
2017-09-29T00:47:18.154Z - info: Snapshot received by LiveOrderbook Demo
2017-09-29T00:47:18.154Z - info: Dropped a message. Expected 12 but received 4118596218.
SKIPPED MESSAGE { expected_sequence: 12, sequence: 4118596218 }
Reconnecting to feed
2017-09-29T00:47:18.154Z - debug: Reconnecting to wss://ws-feed.gdax.com in 0 seconds...
2017-09-29T00:47:18.154Z - debug: Closing existing socket prior to reconnecting to wss://ws-feed.gdax.com
2017-09-29T00:47:18.155Z - debug: GDAX Feed subscriptions confirmed type=subscriptions, channels=[name=level2, product_ids=[BTC-USD], name=matches, product_ids=[BTC-USD], name=ticker, product_ids=[BTC-USD], name=user, product_ids=[BTC-USD], name=heartbeat, product_ids=[BTC-USD]]
2017-09-29T00:47:18.358Z - debug: Connection to wss://ws-feed.gdax.com has been established.
2017-09-29T00:47:18.358Z - debug: Resubscribing to BTC-USD...
2017-09-29T00:47:18.358Z - debug: Sending {"type":"subscribe","product_ids":["BTC-USD"],"channels":["level2","matches","ticker","user","heartbeat"]} message to WS server
2017-09-29T00:47:18.359Z - debug: Sending {"type":"subscribe","product_ids":["BTC-USD"],"channels":["level2","matches","ticker","user","heartbeat"]} message to WS server
2017-09-29T00:47:18.359Z - debug: Reconnection to BTC-USD successful
2017-09-29T00:47:18.796Z - info: Snapshot received by LiveOrderbook Demo
2017-09-29T00:47:18.796Z - info: Dropped a message. Expected 24 but received 4118596218.
SKIPPED MESSAGE { expected_sequence: 24, sequence: 4118596218 }
Reconnecting to feed
2017-09-29T00:47:18.797Z - debug: Reconnecting to wss://ws-feed.gdax.com in 0 seconds...
2017-09-29T00:47:18.797Z - debug: Closing existing socket prior to reconnecting to wss://ws-feed.gdax.com
2017-09-29T00:47:18.797Z - debug: GDAX Feed subscriptions confirmed type=subscriptions, channels=[name=level2, product_ids=[BTC-USD], name=matches, product_ids=[BTC-USD], name=ticker, product_ids=[BTC-USD], name=user, product_ids=[BTC-USD], name=heartbeat, product_ids=[BTC-USD]]
2017-09-29T00:47:19.048Z - info: Snapshot received by LiveOrderbook Demo
2017-09-29T00:47:19.049Z - info: Dropped a message. Expected 24 but received 4118596218.
SKIPPED MESSAGE { expected_sequence: 24, sequence: 4118596218 }
Reconnecting to feed
2017-09-29T00:47:19.049Z - debug: Reconnecting to wss://ws-feed.gdax.com in 0 seconds...
2017-09-29T00:47:19.049Z - debug: Closing existing socket prior to reconnecting to wss://ws-feed.gdax.com
2017-09-29T00:47:19.049Z - debug: GDAX Feed subscriptions confirmed type=subscriptions, channels=[name=level2, product_ids=[BTC-USD], name=matches, product_ids=[BTC-USD], name=ticker, product_ids=[BTC-USD], name=user, product_ids=[BTC-USD], name=heartbeat, product_ids=[BTC-USD]]