Comments (6)
@bennyn thanks a lot. I will checkout the new version later sometime. For now I am closing the issue.
from coinbase-pro-node.
Thanks for reporting. It looks reconnecting-websocket (the library which I use) is trying to do something smart. Have you checked what happens when you adjust the connectionTimeout
given to the WebSocketClient.connect
method?
from coinbase-pro-node.
Yes, I tried, 4, 8 and 10 seconds but result is the same. This is why I asked you to provide arguments for the connect
method.
from coinbase-pro-node.
@bennyn , I ended up implementing my own websocket tracker. I believe it is not the best one, but it has been running for more than 6 hours and there is NO single interruption, though I implemented reconnection mechanism as well. Check it out here.
Once you solve that issue and update your repo please let me know. Looks like the main problem is the library you use.
Feel free to close the issue if you think it is not relevant anymore.
from coinbase-pro-node.
Thanks for you input. I pushed big improvements to the WebSocket implementation of "coinbase-pro-node" today. These are available in v1.6.1.
I also updated the WebSocket example to describe the full lifecycle (connect → subscribe → unsubscribe → disconnect). There now is a demo script which is executable and connects to the ticker to test the lifecycle. When removing the disconnecting part, then I am able to run it without interruptions. It even reconnects when switching my computer to "Airplane mode" and back again. ✈
Looking at your previous code I noticed that you subscribed to the channel without waiting for the open event. That can cause a lot of troubles since you may send subscribe messages to a channel which is not open to receive messages. Your current code waits for "open" before sending messages, so that's good. 👍
from coinbase-pro-node.
Cool. I sent you a pull request which should make testing easier: https://github.com/baloian/cetracker/pull/4
from coinbase-pro-node.
Related Issues (20)
- Can't figure out this 400 Error HOT 3
- Thanks! HOT 4
- Websocket example implementation needs to be updated? HOT 2
- Sorry newb here and at my wits end
- Should ws.subscribe() be marked async and await sendMessage()? HOT 2
- Having trouble accessing listCoinBaseAccounts() HOT 10
- Support conversion (USDC -> USD)
- wrong candlesticks data HOT 3
- Portfolio commission
- Maybe update docs for passing channels? HOT 1
- Add ability to generate wallet addresses HOT 2
- Q: onopen does not trigger for authenticated socket in container HOT 2
- Fix code scanning alert - Polynomial regular expression used on uncontrolled data HOT 1
- granularity for websockets HOT 1
- Unable to recreate order book with l2 data
- Coinbase Advanced Trade API support
- Wallet Endpoint - AvailableBalance interface HOT 2
- Is getPaymentMethods() typing broken? (PaymentMethod Interface) HOT 7
- Is TransferInformation Interface Incorrect? HOT 2
- Coinbase Pro doesn't exist (tutorial) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coinbase-pro-node.