Skip to content

Commit

Permalink
fix websocket client endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Jan 24, 2024
1 parent 03b59ee commit 2bc6599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async fn main() -> std::io::Result<()> {
let client = Box::leak(Box::new(Arc::clone(state.client.borrow())));
websocket::start_ws_server(
format!("{}:1337", &config.host).as_str(),
drift_sdk::utils::http_to_ws(config.rpc_host.as_str()).expect("ws endpoint"),
config.rpc_host.replace("http", "ws"),
state.wallet.clone(),
client.program_data(),
)
Expand Down

0 comments on commit 2bc6599

Please sign in to comment.