Async client for the Kite Connect WebSocket API
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: incorrect range creation during processing binary messages

Ref: #6

+1 -1
+1 -1
src/ticker.rs
··· 239 239 i16::from_be_bytes(binary_message[0..=1].try_into().unwrap()) as usize; 240 240 if num_packets > 0 { 241 241 Some(TickerMessage::Ticks( 242 - [0..num_packets] 242 + (0..num_packets) 243 243 .into_iter() 244 244 .fold((vec![], 2), |(mut acc, start), _| { 245 245 // start - start + 2 : length of the packet