You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone
How can pass framed to ws::start?
It's expected Result<Bytes, PayloadError> but framed is Result<Frame, ...>
How I can convert Frame to Bytes?
let con = awc::Client::new().ws(url).connect().await;match con {Ok((mut res,mut framed)) => {let req = TestRequest::default().insert_header(("sec-websocket-key",
res.headers().get("sec-websocket-accept").unwrap(),)).insert_header(("sec-websocket-version","13")).insert_header(("connection","upgrade")).insert_header(("upgrade","websocket")).to_http_request();match actix_web_actors::ws::start(WsSession::new(id, room, addr),&req,
framed,//todo){Ok(a) => {}Err(e) => {println!("error ={:?}", e)}}}Err(_) => {}}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone
How can pass framed to ws::start?
It's expected Result<Bytes, PayloadError> but framed is Result<Frame, ...>
How I can convert Frame to Bytes?
Beta Was this translation helpful? Give feedback.
All reactions