This alternative to ws_manager with some improvements:
The stream is not coupled to the InfoClient
Subscriptions management is separated from the stream
Subscriptions are dropped when the token is dropped
The stream can be closed and does not leave dangling futures
It does not implement connection retries since this should be built on top as it requires informing subscribers that the stream is interrupted and the client is missing messages.
TODO
[x] Helper on Subs to create a Stream and Subs with one fn call
This alternative to ws_manager with some improvements:
It does not implement connection retries since this should be built on top as it requires informing subscribers that the stream is interrupted and the client is missing messages.
TODO
Subs
to create aStream
andSubs
with one fn call