We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03b59ee commit 2bc6599Copy full SHA for 2bc6599
src/main.rs
@@ -166,7 +166,7 @@ async fn main() -> std::io::Result<()> {
166
let client = Box::leak(Box::new(Arc::clone(state.client.borrow())));
167
websocket::start_ws_server(
168
format!("{}:1337", &config.host).as_str(),
169
- drift_sdk::utils::http_to_ws(config.rpc_host.as_str()).expect("ws endpoint"),
+ config.rpc_host.replace("http", "ws"),
170
state.wallet.clone(),
171
client.program_data(),
172
)
0 commit comments