Skip to content

Commit dbbc2ed

Browse files
committed
chore: update READMEs for 0.2.0
- Update version in main README to 0.2.0 - Update health monitoring description to activity-based - Format ConnectionLost pattern match in example
1 parent 2bd13d5 commit dbbc2ed

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Add to your `Cargo.toml`:
2020

2121
```toml
2222
[dependencies]
23-
kalshi-trade-rs = "0.1.0"
23+
kalshi-trade-rs = "0.2.0"
2424
```
2525

2626
Configure environment variables:

examples/stream_reconnect.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ async fn run_stream(config: &KalshiConfig) -> Result<String, Box<dyn std::error:
5959
match handle.update_receiver.recv().await {
6060
Ok(update) => match &update.msg {
6161
StreamMessage::Closed { reason } => return Ok(reason.to_string()),
62-
StreamMessage::ConnectionLost { reason, subscriptions } => {
62+
StreamMessage::ConnectionLost {
63+
reason,
64+
subscriptions,
65+
} => {
6366
eprintln!("Connection lost: {reason}");
6467
if !subscriptions.is_empty() {
6568
eprintln!("Lost subscriptions: {subscriptions:?}");

src/ws/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Complete reference for WebSocket streaming supported by this library.
3131
|---------|--------|-------|
3232
| RSA-PSS Authentication || Headers: KALSHI-ACCESS-KEY, KALSHI-ACCESS-SIGNATURE, KALSHI-ACCESS-TIMESTAMP |
3333
| Connection Strategies || `Simple` (fast-fail) and `Retry` (exponential backoff) |
34-
| Health Monitoring || Bidirectional ping/pong with configurable timeouts |
34+
| Health Monitoring || Activity-based monitoring with configurable timeouts |
3535
| Heartbeat Response || Auto-responds to Kalshi's 10-second ping frames |
3636
| Graceful Shutdown || Clean close with subscriber notification |
3737
| Reconnection Support || Via application-level pattern (see examples) |

0 commit comments

Comments
 (0)