Open lewiszlw opened 1 year ago
Hi, I'm using this crate as websocket client, I want to know how to get response header? My code like below,
let ws_client = ClientBuild:new(...)...; let (mut ws_read, mut ws_write) = ws_client.split.unwrap(); // write loop std::thread::spawn(move || { loop { ws_write.send_message(...); } }); // read loop std::thread::spawn(move || { for message in ws_read.incomming_messages() { // I want to get response header here. ... } });
Or how to get response header in handshaking?
Hi, I'm using this crate as websocket client, I want to know how to get response header? My code like below,
Or how to get response header in handshaking?