Skip to content

Commit

Permalink
fix: alvr websocket 400 error (#12)
Browse files Browse the repository at this point in the history
* fix: alvr websocket 400 error

* fix: syntax issue
  • Loading branch information
DaRacci authored Jan 27, 2025
1 parent 35bfb10 commit 2a1f2cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/ext_tracking/alvr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ fn receive_until_err(
system: &mut sysinfo::System,
) -> anyhow::Result<()> {
const WS_URL: &str = "ws://127.0.0.1:8082/api/events";
let Ok(mut ws) = ClientBuilder::new(WS_URL)?.connect_insecure() else {
let mut builder = ClientBuilder::new(WS_URL)?;
builder.add_header("X-ALVR".to_string(), "true".to_string());
let Ok(mut ws) = builder.connect_insecure() else {
return Ok(()); // long retry
};

Expand Down

0 comments on commit 2a1f2cf

Please sign in to comment.