We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f5ec8 commit 75f4fdbCopy full SHA for 75f4fdb
tinydancer/src/macros.rs
@@ -3,6 +3,8 @@ macro_rules! convert_to_websocket {
3
($test:expr) => {
4
if $test.contains("https") {
5
$test.replace("https://", "wss://")
6
+ } else if $test.contains("http") {
7
+ $test.replace("http://", "ws://")
8
} else {
9
String::from("ws://0.0.0.0:8900")
10
}
tinydancer/src/main.rs
@@ -318,7 +318,7 @@ pub fn get_endpoint(cluster: String) -> String {
318
"Mainnet" => "https://api.mainnet-beta.solana.com".to_owned(),
319
"Devnet" => "https://api.devnet.solana.com".to_owned(),
320
"Localnet" => "http://0.0.0.0:8899".to_owned(),
321
- _ => "http://0.0.0.0:8899".to_owned(),
+ _ => cluster.to_owned(),
322
323
324
0 commit comments