-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
fix(upbit): multiple streams #26954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix(upbit): multiple streams #26954
Conversation
const stringified = this.json (requestPart); | ||
if (!(stringified in currentSubscriptions)) { | ||
currentSubscriptions[stringified] = requestPart; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't a good approach, if the connection crashes and restarts we still have these in options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does current approach look good?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@carlosmiei wdyt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aren't we still using options?
a long-standing bug, current upbit implementation doesn't support multiple streams well.
for example, you can even test out with postman, just connect to ws:
wss://api.upbit.com/websocket/v1
and subscribe to any ticker:
then subscribe to any orderbook:
you will see that you will no longer receive any stream from ticker endpoint anymore and only orderbook (last subscribed stream) is coming in.
So, we probably need to always send all subscriptions in one (last) request, as also mentioned in the DOCS
fixes #17512