Releases: HaveFunTrading/boomnet
Releases · HaveFunTrading/boomnet
0.0.33
Changes
- [Stream] Use
ConnectionInfo
to simplify TCP stream creation and configuration. In addition, theConnectionInfoProvider
trait ensures cleaner stream composition API.
For example, before the change, when creating Websocket
using composition we would need to reference server_name
in multiple places.
let mut ws = TcpStream::bind_and_connect("stream.binance.com:9443", None, None)?
.into_tls_stream("stream.binance.com")
.into_websocket("wss://stream.binance.com:9443/ws");
After the change, the Websocket
creation looks much simpler.
let mut ws = TcpStream::try_from(("stream.binance.com", 9443))?
.into_tls_stream()
.into_websocket("/ws");
0.0.32
0.0.31
0.0.30
Changes
- [Websocket] Introduce
batch_iter
method to obtain iterator over current messages received since the last network read. This way of consuming messages should be preferred overreceive_next
that will deliver at most one message at a time. - [Websocket] Removed frame timestamps (not backwards compatible). If you need to create batch aware timestamps use the new
batch_iter
method. - [Other] MSRV has been changed to 1.83.0 so that we can use
const
on functions that take mutable references.