Skip to content

Added callback param to end() method, isEnded flag - to stop ws requests#1

Merged
Mathieu2301 merged 2 commits intoMathieu2301:mainfrom
yerofey:add-ws-end-callback
Sep 22, 2021
Merged

Added callback param to end() method, isEnded flag - to stop ws requests#1
Mathieu2301 merged 2 commits intoMathieu2301:mainfrom
yerofey:add-ws-end-callback

Conversation

@yerofey
Copy link
Contributor

@yerofey yerofey commented Sep 21, 2021

In my projects I needed to use results after I got them all, for this reason a callback functionality would be nice to have, so I implemented it :)
Also, market.end() method was not closing WS connection fast, so after it is called - you will be getting some few unnecessary results after, so I added isEnded flag to prevent this happening.

@Mathieu2301 Mathieu2301 merged commit db4a9ea into Mathieu2301:main Sep 22, 2021
@Mathieu2301
Copy link
Owner

I have promisified it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants